[PATCH] Record that -gtoggle is already used in gcc_options.

Martin Liška mliska@suse.cz
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...
Name: 0001-Reset-when-gtoggle-is-used-in-gcc_options.patch
Type: text/x-patch
Size: 1308 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211104/fd48031d/attachment-0001.bin>

More information about the Gcc-patches mailing list