testsuite: i386: Use -fomit-frame-pointer for gcc.target/i386/pr100704-1.c etc.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 26 Oct 2021 11:51:36 +0000 (13:51 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 26 Oct 2021 11:51:36 +0000 (13:51 +0200)
gcc.target/i386/pr100704-[12].c currently FAIL on 64-bit Solaris/x86:

FAIL: gcc.target/i386/pr100704-1.c scan-assembler-not pushq
FAIL: gcc.target/i386/pr100704-2.c scan-assembler-not pushq

Fixed by compiling with -fomit-frame-pointer.

Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu.

2021-10-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

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

gcc/testsuite/gcc.target/i386/pr100704-1.c
gcc/testsuite/gcc.target/i386/pr100704-2.c

index 02461db..b292dc2 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
-/* { dg-options "-O2 -march=x86-64" } */
+/* { dg-options "-O2 -fomit-frame-pointer -march=x86-64" } */
 
 struct S
 {
index 07b9bd1..d010658 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
-/* { dg-options "-O2 -march=x86-64" } */
+/* { dg-options "-O2 -fomit-frame-pointer -march=x86-64" } */
 
 struct S
 {