diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2017-02-09 00:35:20 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@gcc.gnu.org> | 2017-02-09 00:35:20 +0000 |
commit | 3a9abd2302fd87b38ed5a02a998560a5a58c9255 (patch) | |
tree | bf34be77ceeca7a3b6a0a35183eb8197c2d7e0cc /gcc/tree-dfa.c | |
parent | c3bde35a56de3692c3b61caa0340dc80ee5abfcc (diff) | |
download | gcc-3a9abd2302fd87b38ed5a02a998560a5a58c9255.zip gcc-3a9abd2302fd87b38ed5a02a998560a5a58c9255.tar.gz gcc-3a9abd2302fd87b38ed5a02a998560a5a58c9255.tar.bz2 |
arc/gcc: Better creation of __NPS400__ define
The __NPS400__ define is currently created in CPP_SPEC unlike the other
target defines, which are created in arc-c.def. Further, the current
__NPS400__ define is (currently) only created when -mcpu=nps400 is
passed, which is fine, except that if GCC is configured using
--with-cpu=nps400 then the -mcpu option is not required and the
__NPS400__ define will not be created.
This commit moves the __NPS400__ define into arc-c.def inline with all
of the other target defines, and removes the code in CPP_SPEC that used
to create the define.
In order to support the creation of the define in arc-c.def, a new
TARGET_NPS400 macro is created in arc.h.
gcc/ChangeLog:
* config/arc/arc-c.def: Add __NPS400__ definition.
* config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
(TARGET_NPS400): Define.
From-SVN: r245294
Diffstat (limited to 'gcc/tree-dfa.c')
0 files changed, 0 insertions, 0 deletions