Finally, set rs6000_cpu based not on -mtune=, but only -mcpu= and the
defaults.
PR target/43871
* config/rs6000/rs6000.c (rs6000_option_override_internal): Set
rs6000_cpu to the given -mcpu=, or to the default processor.
From-SVN: r255464
+2017-12-07 Segher Boessenkool <segher@kernel.crashing.org>
+
+ PR target/43871
+ * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
+ rs6000_cpu to the given -mcpu=, or to the default processor.
+
2017-12-07 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.h (rs6000_cpu_attr): Delete.
}
}
- gcc_assert (tune_index >= 0);
- rs6000_cpu = processor_target_table[tune_index].processor;
+ if (cpu_index >= 0)
+ rs6000_cpu = processor_target_table[cpu_index].processor;
+ else
+ rs6000_cpu = TARGET_POWERPC64 ? PROCESSOR_DEFAULT64 : PROCESSOR_DEFAULT;
+
gcc_assert (tune_index >= 0);
rs6000_tune = processor_target_table[tune_index].processor;