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

--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Kewen Lin <li...@gcc.gnu.org>:

https://gcc.gnu.org/g:031d42adff2c958cd5bc8457fd89cc5b6f8b8c7b

commit r9-9869-g031d42adff2c958cd5bc8457fd89cc5b6f8b8c7b
Author: Kewen Lin <li...@linux.ibm.com>
Date:   Wed Dec 15 01:16:31 2021 -0600

    rs6000: Remove builtin mask check from builtin_decl [PR102347]

    As the discussion in PR102347, currently builtin_decl is invoked so
    early, it's when making up the function_decl for builtin functions,
    at that time the rs6000_builtin_mask could be wrong for those
    builtins sitting in #pragma/attribute target functions, though it
    will be updated properly later when LTO processes all nodes.

    This patch is to align with the practice i386 port adopts, also
    align with r10-7462 by relaxing builtin mask checking in some places.

    gcc/ChangeLog:

            PR target/102347
            * config/rs6000/rs6000.c (rs6000_builtin_decl): Remove builtin mask
            check.

    gcc/testsuite/ChangeLog:

            PR target/102347
            * gcc.target/powerpc/pr102347.c: New test.

    (cherry picked from commit 6c7d489a1e6592bc73db03678c1231748fd7a126)

Reply via email to