aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-04-28 17:59:18 +0100
committerJoern Rennecke <amylaar@gcc.gnu.org>2016-04-28 17:59:18 +0100
commit87c509e078c84b9f4f987eaac8e7645ebcdaf629 (patch)
tree2d50b77f67ae238978dc018663ab8e0676869b67 /gcc/common
parent9759608c8989c0609d79d6b600f54745588e57a8 (diff)
downloadgcc-87c509e078c84b9f4f987eaac8e7645ebcdaf629.zip
gcc-87c509e078c84b9f4f987eaac8e7645ebcdaf629.tar.gz
gcc-87c509e078c84b9f4f987eaac8e7645ebcdaf629.tar.bz2
arc-common.c (arc_handle_option): Add NPS400 support, setup defaults.
2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com> * common/config/arc/arc-common.c (arc_handle_option): Add NPS400 support, setup defaults. * config/arc/arc-opts.h (enum processor_type): Add NPS400. * config/arc/arc.c (arc_init): Add NPS400 support. * config/arc/arc.h (CPP_SPEC): Add NPS400 defines. (TARGET_ARC700): NPS400 is also an ARC700. * config/arc/arc.opt: Add NPS400 options to -mcpu=. From-SVN: r235584
Diffstat (limited to 'gcc/common')
-rw-r--r--gcc/common/config/arc/arc-common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common/config/arc/arc-common.c b/gcc/common/config/arc/arc-common.c
index 64fb053..f5b9c6d 100644
--- a/gcc/common/config/arc/arc-common.c
+++ b/gcc/common/config/arc/arc-common.c
@@ -83,6 +83,10 @@ arc_handle_option (struct gcc_options *opts, struct gcc_options *opts_set,
switch (value)
{
+ case PROCESSOR_NPS400:
+ if (! (opts_set->x_TARGET_CASE_VECTOR_PC_RELATIVE) )
+ opts->x_TARGET_CASE_VECTOR_PC_RELATIVE = 1;
+ /* Fall through */
case PROCESSOR_ARC600:
case PROCESSOR_ARC700:
if (! (opts_set->x_target_flags & MASK_BARREL_SHIFTER) )