[Bug target/121540] [16 Regression] MMX is allowed in function with no_caller_saved_registers attribute

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 14 02:47:14 GMT 2025


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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:32960f98e639b4d0feed429b13c5f037261560d5

commit r14-11954-g32960f98e639b4d0feed429b13c5f037261560d5
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 29 09:11:34 2025 -0700

    x86: Pass -mno-80387 to compile pr121208-1(a|b).c

    Pass -mno-80387 to compile pr121208-1(a|b).c to silence

    .../pr121208-1a.c:11:1: sorry, unimplemented: 80387 instructions arenât
allowed in a function with the âno_caller_saved_registersâ attribute

    Partially backport the PR target/121540 fix

    9d7f45e9806 x86: Disallow MMX and 80387 in no_caller_saved_registers
function

    to also add -mno-sse -mno-mmx.

            PR target/121208
            * gcc.target/i386/pr121208-1a.c (dg-options): Add
            -mno-sse -mno-mmx -mno-80387.
            * gcc.target/i386/pr121208-1b.c (dg-options): Likewise.

    Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
    (cherry picked from commit c6d1f58da7eb72e8bac307d342e4655012b36a89)


More information about the Gcc-bugs mailing list