https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80210
--- Comment #18 from Peter Bergner <bergner at gcc dot gnu.org> --- Author: bergner Date: Mon Oct 2 16:56:58 2017 New Revision: 253358 URL: https://gcc.gnu.org/viewcvs?rev=253358&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.target/powerpc/pr80210-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/rs6000/rs6000-protos.h trunk/gcc/config/rs6000/rs6000.c trunk/gcc/testsuite/ChangeLog