diff mbox series

testsuite: i386: Use -fomit-frame-pointer for gcc.target/i386/pr100704-1.c etc.

Message ID yddcznt2pcg.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers show
Series testsuite: i386: Use -fomit-frame-pointer for gcc.target/i386/pr100704-1.c etc. | expand

Commit Message

Rainer Orth Oct. 25, 2021, 1:42 p.m. UTC
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.

Ok for master?

	Rainer

Comments

H.J. Lu Oct. 25, 2021, 1:51 p.m. UTC | #1
On Mon, Oct 25, 2021 at 6:42 AM Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
>
> 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.
>
> Ok for master?
>
>         Rainer
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>
>
> 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.
>

LGTM.

Thanks.
diff mbox series

Patch

# HG changeset patch
# Parent  0bfb6ff336f41aa5422e34580f68d5cf27a1641c
testsuite: i386: Use -fomit-frame-pointer for gcc.target/i386/pr100704-1.c etc.

diff --git a/gcc/testsuite/gcc.target/i386/pr100704-1.c b/gcc/testsuite/gcc.target/i386/pr100704-1.c
--- a/gcc/testsuite/gcc.target/i386/pr100704-1.c
+++ b/gcc/testsuite/gcc.target/i386/pr100704-1.c
@@ -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
 {
diff --git a/gcc/testsuite/gcc.target/i386/pr100704-2.c b/gcc/testsuite/gcc.target/i386/pr100704-2.c
--- a/gcc/testsuite/gcc.target/i386/pr100704-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr100704-2.c
@@ -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
 {