[PATCH] Record that -gtoggle is already used in gcc_options.
Thu Nov 4 15:11:52 GMT 2021
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1308 bytes
Desc: not available
More information about the Gcc-patches