https://gcc.gnu.org/g:a616f73cda150aebad1caa5f2eab4da0d75023e3

commit r16-6418-ga616f73cda150aebad1caa5f2eab4da0d75023e3
Author: Rainer Orth <[email protected]>
Date:   Sun Dec 28 11:08:07 2025 +0100

    testsuite: i386: Fix up check-function-bodies tests
    
    Several recent tests that use check-function-bodies on x86 FAIL on Solaris:
    they all lack dg-add-options check_function_bodies which is required to
    handle some Solaris differences.  One test also needs -fomit-frame-pointer
    to deal with a different Solaris/x86 default.
    
    Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu.
    
    2025-12-10  Rainer Orth  <[email protected]>
    
            * gcc.target/i386/20040112-1.c: Add dg-add-options
            check_function_bodies.
            * gcc.target/i386/pr122343-1a.c: Likewise.
            * gcc.target/i386/pr122343-1b.c: Likewise.
            * gcc.target/i386/pr122343-2a.c: Likewise.
            * gcc.target/i386/pr122343-2b.c: Likewise.
            * gcc.target/i386/pr122343-3.c: Likewise.
            * gcc.target/i386/pr122343-4a.c: Likewise.
            * gcc.target/i386/pr122343-4b.c: Likewise.
            * gcc.target/i386/pr122343-5a.c: Likewise.
            * gcc.target/i386/pr122343-5b.c: Likewise.
            * gcc.target/i386/pr122343-6a.c: Likewise.
            * gcc.target/i386/pr122343-6b.c: Likewise.
            * gcc.target/i386/pr122343-7.c: Likewise.
            * gcc.target/i386/pr122675-1.c: Likewise.
            (dg-options): Add -fomit-frame-pointer.

Diff:
---
 gcc/testsuite/gcc.target/i386/20040112-1.c  | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-1a.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-1b.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-2a.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-2b.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-3.c  | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-4a.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-4b.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-5a.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-5b.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-6a.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-6b.c | 1 +
 gcc/testsuite/gcc.target/i386/pr122343-7.c  | 1 +
 gcc/testsuite/gcc.target/i386/pr122675-1.c  | 3 ++-
 14 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/20040112-1.c 
b/gcc/testsuite/gcc.target/i386/20040112-1.c
index ab53292ac7e8..c5ff83dc099e 100644
--- a/gcc/testsuite/gcc.target/i386/20040112-1.c
+++ b/gcc/testsuite/gcc.target/i386/20040112-1.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer" } */
 /* { dg-additional-options "-mregparm=1" { target ia32 } } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-1a.c 
b/gcc/testsuite/gcc.target/i386/pr122343-1a.c
index 7076d8811747..75dc2155ff45 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-1a.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-1a.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer" } */
 /* { dg-additional-options "-mregparm=1" { target ia32 } } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-1b.c 
b/gcc/testsuite/gcc.target/i386/pr122343-1b.c
index 989d3b23a78f..56fbd2c7373b 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-1b.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-1b.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer -fno-fuse-ops-with-volatile-access" 
} */
 /* { dg-additional-options "-mregparm=1" { target ia32 } } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-2a.c 
b/gcc/testsuite/gcc.target/i386/pr122343-2a.c
index f7ee02149ce6..ed429d73557c 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-2a.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-2a.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer" } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-2b.c 
b/gcc/testsuite/gcc.target/i386/pr122343-2b.c
index d4a1151a5862..34014a11d18e 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-2b.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-2b.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer -fno-fuse-ops-with-volatile-access" 
} */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-3.c 
b/gcc/testsuite/gcc.target/i386/pr122343-3.c
index 335f777d2a9a..7522159076da 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-3.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-3.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer" } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-4a.c 
b/gcc/testsuite/gcc.target/i386/pr122343-4a.c
index 3ae07a27cf1c..6c871627bcd6 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-4a.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-4a.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer" } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-4b.c 
b/gcc/testsuite/gcc.target/i386/pr122343-4b.c
index 31a990eb3630..4f020371e062 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-4b.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-4b.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer -fno-fuse-ops-with-volatile-access" 
} */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-5a.c 
b/gcc/testsuite/gcc.target/i386/pr122343-5a.c
index 3d133b671577..01ce2007c13d 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-5a.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-5a.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer" } */
 /* { dg-additional-options "-mregparm=1" { target ia32 } } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-5b.c 
b/gcc/testsuite/gcc.target/i386/pr122343-5b.c
index 5f64496d6f45..ecfbe3f1df20 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-5b.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-5b.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer -fno-fuse-ops-with-volatile-access" 
} */
 /* { dg-additional-options "-mregparm=1" { target ia32 } } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-6a.c 
b/gcc/testsuite/gcc.target/i386/pr122343-6a.c
index 940182644c7e..843d053d77ed 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-6a.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-6a.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer" } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target { *-*-* } } {^\t?\.} 
} } */
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-6b.c 
b/gcc/testsuite/gcc.target/i386/pr122343-6b.c
index f741f5ca98c7..dbc79fd8517c 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-6b.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-6b.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer -fno-fuse-ops-with-volatile-access" 
} */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122343-7.c 
b/gcc/testsuite/gcc.target/i386/pr122343-7.c
index 0e4edd1e5e71..15c291801bb7 100644
--- a/gcc/testsuite/gcc.target/i386/pr122343-7.c
+++ b/gcc/testsuite/gcc.target/i386/pr122343-7.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer" } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target *-*-* } {^\t?\.} } } 
*/
 
diff --git a/gcc/testsuite/gcc.target/i386/pr122675-1.c 
b/gcc/testsuite/gcc.target/i386/pr122675-1.c
index fb41f5b27883..0da288a6584f 100644
--- a/gcc/testsuite/gcc.target/i386/pr122675-1.c
+++ b/gcc/testsuite/gcc.target/i386/pr122675-1.c
@@ -1,6 +1,7 @@
 /* Verify that the most likely BB edges are optimized as fallthroughs.  */
 /* { dg-do compile } */
-/* { dg-options "-O1 -fno-pic -march=x86-64 -mtune=generic 
-mgeneral-regs-only" } */
+/* { dg-options "-O1 -fno-pic -march=x86-64 -mtune=generic -mgeneral-regs-only 
-fomit-frame-pointer" } */
+/* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
 /* { dg-final { check-function-bodies "**" "" "" { target lp64 } {^\t?\.} } } 
*/

Reply via email to