https://gcc.gnu.org/g:cbd499db356a42e2cd9fd4f4635acd8d08a3f074
commit cbd499db356a42e2cd9fd4f4635acd8d08a3f074 Author: Alexandre Oliva <ol...@adacore.com> Date: Fri May 16 07:53:30 2025 -0300 [testsuite] [x86] no-callee-saved-16.c needs -fomit-frame-pointer 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. Diff: --- gcc/testsuite/gcc.target/i386/no-callee-saved-16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/no-callee-saved-16.c b/gcc/testsuite/gcc.target/i386/no-callee-saved-16.c index 112d1764f3e1..a5589e21ab3b 100644 --- a/gcc/testsuite/gcc.target/i386/no-callee-saved-16.c +++ b/gcc/testsuite/gcc.target/i386/no-callee-saved-16.c @@ -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));