rs6000: Set rs6000_cpu correctly (PR43871)
authorSegher Boessenkool <segher@kernel.crashing.org>
Sat, 2 Dec 2017 01:23:41 +0000 (02:23 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Sat, 2 Dec 2017 01:23:41 +0000 (02:23 +0100)
commit81094bcb458cd005474156b5e0bc0c7c72387bbc
treecdcd4fecad61e8dda6c9355a0de6a641a311f28c
parentdff125ebb56f4b21a5b40d3aa6f9ccb7446cbdb4
rs6000: Set rs6000_cpu correctly (PR43871)

We set rs6000_cpu based on tune_index, but it should be cpu_index.
This patch fixes it.

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

From-SVN: r255349
gcc/ChangeLog
gcc/config/rs6000/rs6000.c