From patchwork Fri Mar 4 13:25:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 592046 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CA12F1402A0 for ; Sat, 5 Mar 2016 00:27:45 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=b55ra+uA; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; q=dns; s=default; b=vvLlu581HlMNCFFAVE7 6zaxPfO7g+cbRU7UHn6ZFvLnJi7B3HF2+0Z1EduIDgPsiehWPyeHCVrJDAZZ3s2i K6XJJKoQHFMrkTgoiiY9g/4pN3xBq0bIKO9vLlNgUrVEAPi+TImboODKcc82iiId za+t/iZtKaVvpAuARqrtpBsI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; s=default; bh=bvg6FV3mWmOuzJfwZ9jjHxre8 40=; b=b55ra+uA8xNofH0i3ytzuDsF9K0JE90ZSaX2jaRoVmFtMz/1ZCDnO0vFS 7SvprMGg4oQDRhe1thWcNlCeXOGHXkQmFH/0QaIrx2x3I02McZ4XqbNOQXy8AXHI SU8WM2dG88MGNGn2ydmnJ99MBcplUSJYGP21Ts2gUfXy1efuJY= Received: (qmail 43364 invoked by alias); 4 Mar 2016 13:26:13 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 43277 invoked by uid 89); 4 Mar 2016 13:26:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Hx-languages-length:1149 X-HELO: mail-wm0-f45.google.com Received: from mail-wm0-f45.google.com (HELO mail-wm0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 04 Mar 2016 13:26:12 +0000 Received: by mail-wm0-f45.google.com with SMTP id p65so20278947wmp.1 for ; Fri, 04 Mar 2016 05:26:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=XfsAY5RTfM6l79Z/Ag+5nm+E4I4pAXapHhBi/AkKeRI=; b=G4HpKrmtxOB7gKkLwefO1bxrtGsRMmuQq9xcyMSo2oxSEAsaV8AzKMDCRiAHNA9BTb slExzmZZ2WXKruw3VHEU2IZ8CgH6IcBo/iHkRJ5pelur0nSWd5rUmRbr2dDxscQ5ZN+u IVesK8Tk70PaAn2PT70SsDSxZ7iV7jw4FV9VKGnz23ecf2sV+6QUqlVSwI2hYUg7B9er t4k297VgDMN84en/rw/4AjlO8lq3VuYZxPA0BGuWWcMeUpqEiRsG1nRDjY7hwGPigC/u DWfmYVanmM1Ip27yGez+mebVLUb3uTG5wXRyKjVXSSVT34mFdOI6r3LOkNpR5eG8VeZU /wIQ== X-Gm-Message-State: AD7BkJJcquDXnQ/90b1ddo+PzyMMWS8vaZbeYKgXfmHOnIObgqo0/DQhKv4NWGjqCZ/+iw== X-Received: by 10.195.12.113 with SMTP id ep17mr8830018wjd.102.1457097969237; Fri, 04 Mar 2016 05:26:09 -0800 (PST) Received: from localhost (host86-138-94-184.range86-138.btcentralplus.com. [86.138.94.184]) by smtp.gmail.com with ESMTPSA id k4sm3341150wmc.12.2016.03.04.05.26.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Mar 2016 05:26:08 -0800 (PST) From: Andrew Burgess To: gcc-patches@gcc.gnu.org Cc: noamca@mellanox.com, Claudiu.Zissulescu@synopsys.com, Andrew Burgess Subject: [PATCH 10/10] gcc/arc: Add __NPS400__ define for nps400 targets Date: Fri, 4 Mar 2016 13:25:42 +0000 Message-Id: <2f9e61275862654b5a051f65d4b258d273027b84.1457097757.git.andrew.burgess@embecosm.com> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes Arrange to have the define __NPS400__ defined when compiling code for Mellanox NPS400 ARC variant. gcc/ChangeLog: * conig/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Add __NPS400__. --- gcc/ChangeLog.NPS400 | 4 ++++ gcc/config/arc/arc.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog.NPS400 b/gcc/ChangeLog.NPS400 index 146370c..e1889b9 100644 --- a/gcc/ChangeLog.NPS400 +++ b/gcc/ChangeLog.NPS400 @@ -1,3 +1,7 @@ +2016-02-08 Andrew Burgess + + * conig/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Add __NPS400__. + 2016-01-19 Joern Rennecke Andrew Burgess diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index f278bf5..0330ab4 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -120,6 +120,8 @@ along with GCC; see the file COPYING3. If not see ? "__BIG_ENDIAN__" : "__LITTLE_ENDIAN__"); \ if (TARGET_BIG_ENDIAN) \ builtin_define ("__big_endian__"); \ + if (ARC_NPS400) \ + builtin_define ("__NPS400__"); \ } while(0) #if DEFAULT_LIBC == LIBC_UCLIBC