Option processing question

Richard Biener richard.guenther@gmail.com
Mon Jan 13 14:01:00 GMT 2020


On Sat, Jan 11, 2020 at 4:47 AM Gary Oblock <goblock@marvell.com> wrote:
>
> I'm writing an LTO optimization that requires "-flto-partition=one" How can I make
> sure that this is the case? I've spent hours greping the code and the Internals Doc is
> worth less than nothing for something like this.

That's of course because you shouldn't be doing this ;)

> If you have an answer or even
> I good idea of where to look please let me know. Note, for an normal "-fbalh" there's
> a flag_blah that I could look at but for this there seems to be zip, nil, diddly squat, etc.

At LTRANS time you indeed don't know.

But there's -flto-partition=none (none, not one), that you can detect somehow
(I think in_lto_p && !flag_ltrans && !flag_wpa).

Richard.

> Many thanks,
>
> Gary



More information about the Gcc mailing list