]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: i386: Fix up check-function-bodies tests
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Sun, 28 Dec 2025 10:08:07 +0000 (11:08 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Sun, 28 Dec 2025 10:08:07 +0000 (11:08 +0100)
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  <ro@CeBiTec.Uni-Bielefeld.DE>

* 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.

14 files changed:
gcc/testsuite/gcc.target/i386/20040112-1.c
gcc/testsuite/gcc.target/i386/pr122343-1a.c
gcc/testsuite/gcc.target/i386/pr122343-1b.c
gcc/testsuite/gcc.target/i386/pr122343-2a.c
gcc/testsuite/gcc.target/i386/pr122343-2b.c
gcc/testsuite/gcc.target/i386/pr122343-3.c
gcc/testsuite/gcc.target/i386/pr122343-4a.c
gcc/testsuite/gcc.target/i386/pr122343-4b.c
gcc/testsuite/gcc.target/i386/pr122343-5a.c
gcc/testsuite/gcc.target/i386/pr122343-5b.c
gcc/testsuite/gcc.target/i386/pr122343-6a.c
gcc/testsuite/gcc.target/i386/pr122343-6b.c
gcc/testsuite/gcc.target/i386/pr122343-7.c
gcc/testsuite/gcc.target/i386/pr122675-1.c

index ab53292ac7e84f01178eb83600fc42aeb6618348..c5ff83dc099e5f4d724a1eb840f35d731650a249 100644 (file)
@@ -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?\.} } } */
 
index 7076d881174712f6c6b8d97da50b8a7e9b6c01a5..75dc2155ff453c9ddf02cea1ff5b405aa6490b4f 100644 (file)
@@ -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?\.} } } */
 
index 989d3b23a78f66347fa01fb7ba72936004741662..56fbd2c7373b9142c3203d37e2c26cf08a7534df 100644 (file)
@@ -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?\.} } } */
 
index f7ee02149ce6ba3e5868face94ecfe254bd7c014..ed429d73557ce8a092522157ce2799aa553f5bb2 100644 (file)
@@ -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?\.} } } */
 
index d4a1151a5862e4005fe82ff6ea8664a719f91cac..34014a11d18e2f9cb567cf4807373c5fac0c0af3 100644 (file)
@@ -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?\.} } } */
 
index 335f777d2a9afa44645097d0a2f7556dd087bcff..7522159076daaee5b38db372ff22d9a61f0a1019 100644 (file)
@@ -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?\.} } } */
 
index 3ae07a27cf1c60512f56c1598aba133f143515f7..6c871627bcd6a17d7d59f86f5ff411ee6c0fbf79 100644 (file)
@@ -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?\.} } } */
 
index 31a990eb36307e3af5adade1a7266fb0a59b4e9a..4f020371e0627455098ebe7c568cab306832c7f6 100644 (file)
@@ -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?\.} } } */
 
index 3d133b671577c822c843edeab12087d335fdcace..01ce2007c13d5874e5643685dd1dc9306487d415 100644 (file)
@@ -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?\.} } } */
 
index 5f64496d6f456418524f09ab369d4b5beb5a1343..ecfbe3f1df205487127959afe5cef8cfa8fb68e2 100644 (file)
@@ -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?\.} } } */
 
index 940182644c7e52724eb3d6104deb8df1f7df504f..843d053d77edf194cd3b25288fab2c8e0cfd4ff3 100644 (file)
@@ -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?\.} } } */
 
index f741f5ca98c79d14c0ea15df93d3d7cdbbe19b91..dbc79fd8517c6c8b57dae32721b14af09a12ada4 100644 (file)
@@ -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?\.} } } */
 
index 0e4edd1e5e714b4ad19bb8b2258ec58ffd93f679..15c291801bb7f6e21a1ff1303b21cd666a7b3ecf 100644 (file)
@@ -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?\.} } } */
 
index fb41f5b2788330ddf1d3d316b8b7f83268bb22cb..0da288a6584fd9836f4500e2f2c2d468ede9ee5e 100644 (file)
@@ -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?\.} } } */