]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [x86] no-callee-saved-16.c needs -fomit-frame-pointer
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 May 2025 09:20:54 +0000 (06:20 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 May 2025 09:20:54 +0000 (06:20 -0300)
If the toolchain is built with --enable-frame-pointer,
gcc.target/i386/no-callee-saved-16.c will not get the expected
optimization without -fomit-frame-pointer, that would be enabled by
-O2 without the configure flag.  Add it.

for  gcc/testsuite/ChangeLog

* gcc.target/i386/no-callee-saved-16.c: Add -fomit-frame-pointer.

gcc/testsuite/gcc.target/i386/no-callee-saved-16.c

index 112d1764f3e10cd77bbf68ce1eb4b8ae0a5b54f2..a5589e21ab3b9806012fd29992ef1c4f0f23c126 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move" } */
+/* { dg-options "-O2 -fomit-frame-pointer -mtune-ctrl=^prologue_using_move,^epilogue_using_move" } */
 
 typedef void (*fn_t) (void) __attribute__ ((no_callee_saved_registers));