[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
This commit is contained in:
Claudiu Zissulescu 2016-11-29 15:26:28 +01:00 committed by Claudiu Zissulescu
parent c0fe5a2109
commit 6323c98156
2 changed files with 11 additions and 4 deletions

View 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

View 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)