]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[ARC] Fix compact casesi option.
authorclaziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Nov 2016 14:26:28 +0000 (14:26 +0000)
committerclaziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Nov 2016 14:26:28 +0000 (14:26 +0000)
gcc/
2016-11-29  Claudiu Zissulescu  <claziss@synopsys.com>

        * config/arc/arc.c (arc_override_options): Avoid selection of
        compact casesi for ARCv2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242961 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arc/arc.c

index 2771bfd0fb7f0e8dfa88c97c033fb6b4f564d768..04d2030b5611a7e68bc605b525f5a953e9581c44 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-29  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * config/arc/arc.c (arc_override_options): Avoid selection of
+       compact casesi for ARCv2.
+
 2016-11-29  Richard Biener  <rguenther@suse.de>
 
        * tree-cfg.c (lower_phi_internal_fn): Do not look for further
index c73668f2e34db4e0d1edb7a2dd61331061d2d9bf..dce66a1a7d6ab08af4606b8d47f450cfa2f013f3 100644 (file)
@@ -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)