https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80210
--- Comment #20 from Peter Bergner <bergner at gcc dot gnu.org> --- Author: bergner Date: Thu Dec 14 17:43:32 2017 New Revision: 255655 URL: https://gcc.gnu.org/viewcvs?rev=255655&root=gcc&view=rev Log: gcc/ Backport from mainline 2017-10-02 Peter Bergner <berg...@vnet.ibm.com> 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/ Backport from mainline 2017-10-02 Peter Bergner <berg...@vnet.ibm.com> PR target/80210 * gcc.target/powerpc/pr80210-2.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/pr80210-2.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/config/rs6000/rs6000-protos.h branches/gcc-7-branch/gcc/config/rs6000/rs6000.c branches/gcc-7-branch/gcc/testsuite/ChangeLog