gcc/
commit58503de24e1ccf43821c687bd7f666808854bf31
authorbergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Oct 2017 16:56:58 +0000 (2 16:56 +0000)
committerbergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Oct 2017 16:56:58 +0000 (2 16:56 +0000)
treedd2bea9e60bf8fc8b8067a3efaf92795038abce7
parent37de6f6b518383e3f7d4d8c2627a2374174baea6
gcc/
PR target/80210
* config/rs6000/rs6000.c (rs6000_option_override_internal): Rewrite
function to not use the have_cpu variable.  Do not set cpu_index,
rs6000_cpu_index or rs6000_tune_index if we end up using TARGET_DEFAULT
or the default cpu.
(rs6000_valid_attribute_p): Remove duplicate initializations of
old_optimize and func_optimize.
(rs6000_pragma_target_parse): Call rs6000_activate_target_options ().
(rs6000_activate_target_options): Make global.
* config/rs6000/rs6000-protos.h (rs6000_activate_target_options): Add
prototype.

gcc/testsuite/
PR target/80210
* gcc.target/powerpc/pr80210-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253358 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr80210-2.c [new file with mode: 0644]