public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8692] testsuite: i386: Fix gcc.target/i386/no-callee-saved-1.c etc. on Solaris/x86
@ 2024-02-01 11:53 Rainer Orth
0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2024-02-01 11:53 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7fd4bb1d987c3dc084bd367c93e689325f24b84a
commit r14-8692-g7fd4bb1d987c3dc084bd367c93e689325f24b84a
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Thu Feb 1 12:53:06 2024 +0100
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.
Diff:
---
gcc/testsuite/gcc.target/i386/no-callee-saved-1.c | 2 +-
gcc/testsuite/gcc.target/i386/no-callee-saved-2.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/i386/no-callee-saved-1.c b/gcc/testsuite/gcc.target/i386/no-callee-saved-1.c
index 8fe36eb5198c..599c2a3fa191 100644
--- a/gcc/testsuite/gcc.target/i386/no-callee-saved-1.c
+++ b/gcc/testsuite/gcc.target/i386/no-callee-saved-1.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move" } */
+/* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move -fomit-frame-pointer" } */
extern int bar (int)
#ifndef __x86_64__
diff --git a/gcc/testsuite/gcc.target/i386/no-callee-saved-2.c b/gcc/testsuite/gcc.target/i386/no-callee-saved-2.c
index ce4ab3b17991..98e2701d925e 100644
--- a/gcc/testsuite/gcc.target/i386/no-callee-saved-2.c
+++ b/gcc/testsuite/gcc.target/i386/no-callee-saved-2.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move" } */
+/* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move -fomit-frame-pointer" } */
extern int bar (int) __attribute__ ((no_caller_saved_registers))
#ifndef __x86_64__
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-01 11:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-01 11:53 [gcc r14-8692] testsuite: i386: Fix gcc.target/i386/no-callee-saved-1.c etc. on Solaris/x86 Rainer Orth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).