From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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, 04 Mar 2016 13:26:00 -0000 Message-Id: <2f9e61275862654b5a051f65d4b258d273027b84.1457097757.git.andrew.burgess@embecosm.com> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00351.txt.bz2 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 -- 2.6.4