]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Set rs6000_cpu correctly (PR43871)
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Dec 2017 01:23:41 +0000 (01:23 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Dec 2017 01:23:41 +0000 (01:23 +0000)
commit5ac1701b456a5e0c70b5927b44801957874da67e
treecdcd4fecad61e8dda6c9355a0de6a641a311f28c
parent5a26cd2640bd6276d0f48555b34463d3295c51a8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255349 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.c