Commit 6323c981 by Claudiu Zissulescu Committed by Claudiu Zissulescu

[ARC] Fix compact casesi option.

gcc/
2016-11-29  Claudiu Zissulescu  <claziss@synopsys.com>

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

From-SVN: r242961
parent c0fe5a21
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> 2016-11-29 Richard Biener <rguenther@suse.de>
* tree-cfg.c (lower_phi_internal_fn): Do not look for further * tree-cfg.c (lower_phi_internal_fn): Do not look for further
...@@ -871,12 +871,14 @@ arc_override_options (void) ...@@ -871,12 +871,14 @@ arc_override_options (void)
optimize_size = 1; optimize_size = 1;
/* Compact casesi is not a valid option for ARCv2 family. */ /* Compact casesi is not a valid option for ARCv2 family. */
if (TARGET_V2 if (TARGET_V2)
&& TARGET_COMPACT_CASESI) {
if (TARGET_COMPACT_CASESI)
{ {
warning (0, "compact-casesi is not applicable to ARCv2"); warning (0, "compact-casesi is not applicable to ARCv2");
TARGET_COMPACT_CASESI = 0; TARGET_COMPACT_CASESI = 0;
} }
}
else if (optimize_size == 1 else if (optimize_size == 1
&& !global_options_set.x_TARGET_COMPACT_CASESI) && !global_options_set.x_TARGET_COMPACT_CASESI)
TARGET_COMPACT_CASESI = 1; TARGET_COMPACT_CASESI = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment