]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: i386: Fix gcc.target/i386/no-callee-saved-1.c etc. on Solaris/x86
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 1 Feb 2024 11:53:06 +0000 (12:53 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 1 Feb 2024 11:53:06 +0000 (12:53 +0100)
commit7fd4bb1d987c3dc084bd367c93e689325f24b84a
treef042b3c41d8e83dbc68cbef4a55bfb0b16139c1d
parent6353c39699076444190b8e329f7c2fc28204662c
testsuite: i386: Fix gcc.target/i386/no-callee-saved-1.c etc. on Solaris/x86

The gcc.target/i386/no-callee-saved-[12].c tests FAIL on Solaris/x86:

FAIL: gcc.target/i386/no-callee-saved-1.c scan-assembler-not push
FAIL: gcc.target/i386/no-callee-saved-2.c scan-assembler-not push

In both cases, the test expect the Linux/x86 default of
-fomit-frame-pointer, while Solaris/x86 defaults to
-fno-omit-frame-pointer.

So this patch explicitly specifies -fomit-frame-pointer.

Tested on i386-pc-solaris2.11 (as and gas) and i686-pc-linux-gnu.

2024-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
* gcc.target/i386/no-callee-saved-1.c: Add -fomit-frame-pointer to
dg-options.
* gcc.target/i386/no-callee-saved-2.c: Likewise.
gcc/testsuite/gcc.target/i386/no-callee-saved-1.c
gcc/testsuite/gcc.target/i386/no-callee-saved-2.c