[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 21:45:36 GMT 2022


--- Comment #40 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Peter Bergner


commit r12-8353-ge6b1ac334ac61f72536f3479f735ea3514f1309d
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 and -mpower10-fusion options do not modify which
    instructions we can generate, so ignore them when deciding whether we
    can inline callee into caller.

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

            PR target/102059
            * config/rs6000/rs6000.cc (rs6000_can_inline_p): Ignore
            and -mpower10-fusion options for inlining purposes.

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

    (cherry picked from commit 2fb654f77d5292864ef57040f7bc01d7a975f6d9)

More information about the Gcc-bugs mailing list