On Thu, Nov 4, 2021 at 4:11 PM Martin Liška <mli...@suse.cz> wrote: > > On 11/4/21 14:09, Richard Biener wrote: > > But we shouldn't start with the current global options but with ones > > we saved for > > optimize attribute/pragma processing, no? > > We hit the issue when we combine cmdline and pragma optimize options. > > > > >> Problem of -gtoggle is that it does not directly influence an option, but > >> it negates it. > >> > >> That said, I think my patch with gtoggle_used is a reasonable workaround. > > Well, then we could as well unset flag_gtoggle after processing it, no? > > Yeah, that work! :) > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed?
OK if you add a comment like /* Make sure to process -gtoggle only once. */ Richard. > Thanks, > Martin