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

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 6 19:03:49 GMT 2022


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

--- Comment #39 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Peter Bergner
<bergner@gcc.gnu.org>:

https://gcc.gnu.org/g:aa33a2d866c0f3f2f9b3cb26f8ff2074bcd169b4

commit r10-10596-gaa33a2d866c0f3f2f9b3cb26f8ff2074bcd169b4
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Fri May 6 11:39:13 2022 -0500

    rs6000: Ignore fusion option flags for inlining test [PR102059]

    The -mpower8-fusion option does not modify which instructions we can
generate,
    so ignore it when deciding whether we can inline callee into caller.

    2022-05-06   Michael Meissner  <meissner@linux.ibm.com>

    gcc/
            PR target/102059
            * config/rs6000/rs6000.c (rs6000_can_inline_p): Ignore
-mpower8-fusion
            option for inlining purposes.

    gcc/testsuite/
            PR target/102059
            * gcc.target/powerpc/pr102059-4.c: New test.

    (cherry picked from commit 2fb654f77d5292864ef57040f7bc01d7a975f6d9)


More information about the Gcc-bugs mailing list