[Bug ipa/102059] Incorrect always_inline diagnostic in LTO mode with #pragma GCC target("cpu=power10")

linkw at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 26 09:34:12 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102059

--- Comment #18 from Kewen Lin <linkw at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #16)
> > 
> > Thanks for the example, it looks useful! Now the field fp_expressions is
> > generic, one target specific summary class seems required then. And not sure
> > if the users still have interests/senses to further try flto when they fail
> > to get expected inlining with some basic optimization options. :)
> 
> Note the Comment 7, fixing that people will see the error also in non-LTO
> mode.

Yeah, the patch draft in comment 17 can make it consistent. Thanks for the
finding again! I think I was misunderstanding on ipa_fn_summaries, thought it's
only generated for LTO. Your reply makes me conclude it's generated for both.
:)


More information about the Gcc-bugs mailing list