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

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <[email protected]>:

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

commit r16-8248-gc2907390e4111b0dff35172f6d7f6f35d2c87ae1
Author: Andrew Pinski <[email protected]>
Date:   Sat Mar 21 12:37:24 2026 -0700

    x86: Mark the x86 va_builtins as nothrow and leaf [PR124597]

    So all of the va_builtins are marked as nothrow and leaf but
    the x86 backend builds the va builtins without this.
    This causes both missed optimizations and in some cases
    more work needs to be done by the middle-end handling of
    these builtins.
    This marks all of the x86 va builtins function decls as both
    nothrow and leaf.

    Bootstrapped and tested on x86_64-linux-gnu.

            PR target/124597

    gcc/ChangeLog:

            * config/i386/i386-builtins.cc
(ix86_init_builtins_va_builtins_abi):
            Also add nothrow and leaf attributes to the va builtins.

    Signed-off-by: Andrew Pinski <[email protected]>

Reply via email to