https://gcc.gnu.org/g:45009ea085022ebc4b1cea387c5746a3b6d07642

commit 45009ea085022ebc4b1cea387c5746a3b6d07642
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Fri May 16 07:59:03 2025 -0300

    [testsuite] [x86] pr31985.c needs -fomit-frame-pointer to match movl count
    
    On an --enable-frame-pointer toolchain, pr31985.c gets an extra movl
    and fails.  Enable -fomit-frame-pointer explicitly.
    
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.target/i386/pr31985.c: Add -fomit-frame-pointer.

Diff:
---
 gcc/testsuite/gcc.target/i386/pr31985.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/pr31985.c 
b/gcc/testsuite/gcc.target/i386/pr31985.c
index a6de1b5b1431..a0a91116242c 100644
--- a/gcc/testsuite/gcc.target/i386/pr31985.c
+++ b/gcc/testsuite/gcc.target/i386/pr31985.c
@@ -1,5 +1,5 @@
 /* { dg-do compile { target ia32 } } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -fomit-frame-pointer" } */
 
 void test_c (unsigned int a, unsigned int b, unsigned int c, unsigned int d)
 {

Reply via email to