From: Rainer Orth Date: Wed, 17 Dec 2025 12:20:20 +0000 (+0100) Subject: testsuite: i386: Restrict gcc.target/i386/pr120881-1?.c to Linux X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd986ddbded2cfcbe3ccdc076e4cba15a7643b65;p=thirdparty%2Fgcc.git testsuite: i386: Restrict gcc.target/i386/pr120881-1?.c to Linux 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 gcc/testsuite: * gcc.target/i386/pr120881-1a.c: Restrict to Linux. * gcc.target/i386/pr120881-1b.c: Likewise. --- diff --git a/gcc/testsuite/gcc.target/i386/pr120881-1a.c b/gcc/testsuite/gcc.target/i386/pr120881-1a.c index 3d9ac0e9e86..cb5c333c21d 100644 --- a/gcc/testsuite/gcc.target/i386/pr120881-1a.c +++ b/gcc/testsuite/gcc.target/i386/pr120881-1a.c @@ -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 } */ diff --git a/gcc/testsuite/gcc.target/i386/pr120881-1b.c b/gcc/testsuite/gcc.target/i386/pr120881-1b.c index 082640726b1..c7e159f41f3 100644 --- a/gcc/testsuite/gcc.target/i386/pr120881-1b.c +++ b/gcc/testsuite/gcc.target/i386/pr120881-1b.c @@ -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 } */