]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: i386: Restrict gcc.target/i386/pr120881-1?.c to Linux
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 17 Dec 2025 12:20:20 +0000 (13:20 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 17 Dec 2025 12:20:20 +0000 (13:20 +0100)
Two tests FAIL on Solaris x86:

FAIL: gcc.target/i386/pr120881-1a.c  at line 4 (test for warnings, line )
FAIL: gcc.target/i386/pr120881-1b.c  at line 4 (test for warnings, line )

producing no message contrary to what the tests expect.  The reason is
similar to previous instances: Solaris doesn't support -mfentry.  Like
previous cases, this patch thus restricts them to Linux.

Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu.

2025-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
* gcc.target/i386/pr120881-1a.c: Restrict to Linux.
* gcc.target/i386/pr120881-1b.c: Likewise.

gcc/testsuite/gcc.target/i386/pr120881-1a.c
gcc/testsuite/gcc.target/i386/pr120881-1b.c

index 3d9ac0e9e866cf094258d781452bc9d1118d2a61..cb5c333c21d859052905ae17cc811483b4d0139b 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target fpic } } */
+/* { dg-do compile { target { *-*-linux* && fpic } } } */
 /* { dg-require-profiling "-pg" } */
 /* { dg-options "-O2 -pg -mno-fentry -fno-pic" } */
 /* { dg-message "'-pg' without '-mfentry' may be unreliable with shrink wrapping" "" { target *-*-* } 0 } */
index 082640726b1d9c7820d0959a1271373503cc4fbe..c7e159f41f3b3a5c8e45bec203cbe742ddc911fb 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { fpic && { ! ia32 } } } } */
+/* { dg-do compile { target { { *-*-linux* && { ! ia32 } } && fpic } } } */
 /* { dg-require-profiling "-pg" } */
 /* { dg-options "-O2 -pg -mno-fentry -fpic" } */
 /* { dg-message "'-pg' without '-mfentry' may be unreliable with shrink wrapping" "" { target *-*-* } 0 } */