From: Claudiu Zissulescu Date: Tue, 29 Nov 2016 14:26:28 +0000 (+0100) Subject: [ARC] Fix compact casesi option. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6323c98156164b42b0383fc54c29b8f76387a73a;p=gcc.git [ARC] Fix compact casesi option. gcc/ 2016-11-29 Claudiu Zissulescu * config/arc/arc.c (arc_override_options): Avoid selection of compact casesi for ARCv2. From-SVN: r242961 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2771bfd0fb7..04d2030b561 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-29 Claudiu Zissulescu + + * config/arc/arc.c (arc_override_options): Avoid selection of + compact casesi for ARCv2. + 2016-11-29 Richard Biener * tree-cfg.c (lower_phi_internal_fn): Do not look for further diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index c73668f2e34..dce66a1a7d6 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -871,11 +871,13 @@ arc_override_options (void) optimize_size = 1; /* Compact casesi is not a valid option for ARCv2 family. */ - if (TARGET_V2 - && TARGET_COMPACT_CASESI) + if (TARGET_V2) { - warning (0, "compact-casesi is not applicable to ARCv2"); - TARGET_COMPACT_CASESI = 0; + if (TARGET_COMPACT_CASESI) + { + warning (0, "compact-casesi is not applicable to ARCv2"); + TARGET_COMPACT_CASESI = 0; + } } else if (optimize_size == 1 && !global_options_set.x_TARGET_COMPACT_CASESI)