https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80210
--- Comment #5 from Michael Meissner <meissner at linux dot vnet.ibm.com> --- On Fri, Apr 14, 2017 at 07:26:57PM +0000, bergner at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80210 > > --- Comment #4 from Peter Bergner <bergner at gcc dot gnu.org> --- > So it seems rs6000_pragma_target_parse() ends up calling > rs6000_option_override_internal(), which is modifying the options via global > variables. All other arches pass in the option variables to their > *__option_override_internal(), that they want updated/set and those seem to be > scoped to the area of the file they reside in. If that is the case, then we need to modify the code not to touch the global variables.