https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115713
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Kewen Lin <li...@gcc.gnu.org>: https://gcc.gnu.org/g:f4062e361cccc5a32597afdb6c8066c87f680276 commit r15-2216-gf4062e361cccc5a32597afdb6c8066c87f680276 Author: Kewen Lin <li...@linux.ibm.com> Date: Tue Jul 23 00:48:14 2024 -0500 rs6000: Update option set in rs6000_inner_target_options [PR115713] When function rs6000_inner_target_options parsing target options, it updates the explicit option set information for rs6000_opt_masks by rs6000_isa_flags_explicit, but it misses to update that information for rs6000_opt_vars, and it can result in some unexpected consequence as the associated test case shows. This patch is to fix rs6000_inner_target_options to update the option set for rs6000_opt_vars as well. PR target/115713 gcc/ChangeLog: * config/rs6000/rs6000.cc (rs6000_inner_target_options): Update option set information for rs6000_opt_vars. gcc/testsuite/ChangeLog: * gcc.target/powerpc/pr115713-2.c: New test.