]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Pass -mno-80387 to compile pr121208-1(a|b).c
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 29 Jul 2025 16:11:34 +0000 (09:11 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Aug 2025 02:42:38 +0000 (19:42 -0700)
commite5905a527f523c76b8d7cc2ebe88717fa0ff7d40
tree58aa8fea173d551fab5895c1a05207ac50b9b228
parentafd88fad1615032b5bea2a1916757eee6edaeac9
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)
gcc/testsuite/gcc.target/i386/pr121208-1a.c
gcc/testsuite/gcc.target/i386/pr121208-1b.c