From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41552 invoked by alias); 4 Mar 2016 13:25:58 -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 41475 invoked by uid 89); 4 Mar 2016 13:25:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=el, 1,21, Hx-languages-length:3131 X-HELO: mail-wm0-f53.google.com Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 04 Mar 2016 13:25:54 +0000 Received: by mail-wm0-f53.google.com with SMTP id l68so29193332wml.1 for ; Fri, 04 Mar 2016 05:25:53 -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=FchkjHmqID6pZUYzVR9kcWZAuShJzihqydWfknyMZyI=; b=H85NDx4Ppdr/f4rBZYA2K98TXxKcCk3b7fxLE+3yDb3ZRR46yDFEu/s/S2O22fGr7b L9trtGw1LzHUq3S0crO/T3anFc2kvxo6NsXRKBfre1WRUQK6nbIeM6VNKXGOiKJYQjU2 MAfrz1PeSls4aK1/XM8Qk/JHwirJ/bnrj8RoS4k8qB5IgdcEPZpH2WBxTW0F6Zq5Bh78 8bcVskYWJNIvzfGr19wQckQDv5rBzTuUQWmeqEr7JnZREl5mmM9ux4qaxhqyMKM83fQ1 XpKdL9jF864SmHNY3M8UOVug/aRJxE7R3yAKSdmCEJLwf4R5cbovoRFr1B+25KsmFe65 DxyQ== X-Gm-Message-State: AD7BkJIB9hP4iNBw3YOJOIR+c1VhPw4dv2o5WrfSFvRX1LxY/HCanbhIsZkkMGVXWKTRzg== X-Received: by 10.194.47.237 with SMTP id g13mr9305975wjn.142.1457097951549; Fri, 04 Mar 2016 05:25:51 -0800 (PST) Received: from localhost (host86-138-94-184.range86-138.btcentralplus.com. [86.138.94.184]) by smtp.gmail.com with ESMTPSA id v1sm3319060wjf.49.2016.03.04.05.25.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Mar 2016 05:25:50 -0800 (PST) From: Andrew Burgess To: gcc-patches@gcc.gnu.org Cc: noamca@mellanox.com, Claudiu.Zissulescu@synopsys.com, Andrew Burgess Subject: [PATCH 01/10] gcc: Add support for mellanox nps400 arc variant Date: Fri, 04 Mar 2016 13:25:00 -0000 Message-Id: In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00344.txt.bz2 This commit adds support for the mellanox nps400 arc variant. Nothing much actually changes with this commit other than adding support for 'arc*-mellanox-*' targets at configuration time. I've added a new makefile fragment for the mellanox variant, right now there's not much in here, I'll be adding some content in a later commit, but adding the file now lets me get all of the build infrastructure (config.gcc) changes done in a single commit. gcc/ChangeLog: * config.gcc: Add support for arc*-mellanox-* nps400 targets. * config/arc/t-nps400: New file. --- gcc/ChangeLog.NPS400 | 5 +++++ gcc/config.gcc | 10 ++++++++++ gcc/config/arc/t-nps400 | 21 +++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 gcc/config/arc/t-nps400 diff --git a/gcc/ChangeLog.NPS400 b/gcc/ChangeLog.NPS400 index 4e68491..286f2dd 100644 --- a/gcc/ChangeLog.NPS400 +++ b/gcc/ChangeLog.NPS400 @@ -1,3 +1,8 @@ +2016-02-01 Andrew Burgess + + * config.gcc: Add support for arc*-mellanox-* nps400 targets. + * config/arc/t-nps400: New file. + 2016-02-02 Andrew Burgess * common.opt (ffat-lto-objects): Make this flag default on. diff --git a/gcc/config.gcc b/gcc/config.gcc index 6722260..9a48dca 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1015,6 +1015,11 @@ arc*-*-elf*) case ${with_endian} in big*) tm_defines="DRIVER_ENDIAN_SELF_SPECS=\\\"%{!EL:%{!mlittle-endian:-mbig-endian}}\\\" ${tm_defines}" esac + case ${target} in + arc*-mellanox-*) + tm_defines="${tm_defines} ARC_NPS400=1" + tmake_file="${tmake_file} arc/t-nps400";; + esac ;; arc*-*-linux-uclibc*) extra_headers="arc-simd.h" @@ -1040,6 +1045,11 @@ arc*-*-linux-uclibc*) case ${with_endian} in big*) tm_defines="DRIVER_ENDIAN_SELF_SPECS=\\\"%{!EL:%{!mlittle-endian:-mbig-endian}}\\\" ${tm_defines}" esac + case ${target} in + arc*-mellanox-*) + tm_defines="${tm_defines} ARC_NPS400=1" + tmake_file="${tmake_file} arc/t-nps400";; + esac ;; arm-wrs-vxworks) tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h" diff --git a/gcc/config/arc/t-nps400 b/gcc/config/arc/t-nps400 new file mode 100644 index 0000000..e332e24 --- /dev/null +++ b/gcc/config/arc/t-nps400 @@ -0,0 +1,21 @@ +# GCC Makefile fragment for Mellanox NPS400 variant of Synopsys +# DesignWare ARC + +# Copyright (C) 2016 Free Software Foundation, Inc. + +# This file is part of GCC. + +# GCC is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 3, or (at your option) any later version. + +# GCC is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. + +# You should have received a copy of the GNU General Public License along +# with GCC; see the file COPYING3. If not see +# . + +MULTILIB_OPTIONS= -- 2.6.4