re PR bootstrap/83265 (Bootstrap failure on powerpc64)
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 4 Dec 2017 09:19:27 +0000 (10:19 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 4 Dec 2017 09:19:27 +0000 (10:19 +0100)
PR bootstrap/83265
Revert
2017-12-01  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/43871
* config/rs6000/rs6000.c (rs6000_option_override_internal): Set
rs6000_cpu based on cpu_index, not tune_index.

From-SVN: r255376

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index acde3e97806e73b948159bde92ce8ddfe6af4150..95496132a2bcfd6c868551a3d9034ca03844bf03 100644 (file)
@@ -1,3 +1,13 @@
+2017-12-04  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       PR bootstrap/83265
+       Revert
+       2017-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       PR target/43871
+       * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
+       rs6000_cpu based on cpu_index, not tune_index.
+
 2017-12-04  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/83238
index ed668d05eea6a2ba2688a4aa20058dd516963125..045a01465078b4aaac8f61788be0596c4bf3a8e9 100644 (file)
@@ -4184,8 +4184,8 @@ rs6000_option_override_internal (bool global_init_p)
          }
     }
 
-  gcc_assert (cpu_index >= 0);
-  rs6000_cpu = processor_target_table[cpu_index].processor;
+  gcc_assert (tune_index >= 0);
+  rs6000_cpu = processor_target_table[tune_index].processor;
 
   if (rs6000_cpu == PROCESSOR_PPCE300C2 || rs6000_cpu == PROCESSOR_PPCE300C3
       || rs6000_cpu == PROCESSOR_PPCE500MC || rs6000_cpu == PROCESSOR_PPCE500MC64