[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
Wed Feb 9 02:33:15 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102059
--- Comment #32 from Kewen Lin <linkw at gcc dot gnu.org> ---
(In reply to Michael Meissner from comment #31)
> Created attachment 52383 [details]
> Simpler patch to fix the problem with power8-fusion.
>
> This patch just ignores the -mpower8-fusion option in the callee if the
> caller does not have it set, and the option wasn't set explicitly.
Thanks for the patch Mike! IMHO, it can also remove the option
-mno-power8-fusion in gcc/testsuite/gcc.dg/lto/pr102059-1_0.c, the case is
designed for the usage reflected by this PR.
More information about the Gcc-bugs
mailing list