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 <andrew.burg...@embecosm.com> + + * config.gcc: Add support for arc*-mellanox-* nps400 targets. + * config/arc/t-nps400: New file. + 2016-02-02 Andrew Burgess <andrew.burg...@embecosm.com> * 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 +# <http://www.gnu.org/licenses/>. + +MULTILIB_OPTIONS= -- 2.6.4