aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlhooks.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2017-02-09 00:35:20 +0000
committerAndrew Burgess <aburgess@gcc.gnu.org>2017-02-09 00:35:20 +0000
commit3a9abd2302fd87b38ed5a02a998560a5a58c9255 (patch)
treebf34be77ceeca7a3b6a0a35183eb8197c2d7e0cc /gcc/rtlhooks.c
parentc3bde35a56de3692c3b61caa0340dc80ee5abfcc (diff)
downloadgcc-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/rtlhooks.c')
0 files changed, 0 insertions, 0 deletions