From: Rainer Orth Date: Thu, 9 Apr 2026 08:02:18 +0000 (+0200) Subject: testsuite: i386: Restrict gcc.target/i386/pr124759.c to Linux X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f725ee3ad13de751fd4eb51daaecf10059bb09b;p=thirdparty%2Fgcc.git testsuite: i386: Restrict gcc.target/i386/pr124759.c to Linux The new gcc.target/i386/pr124759.c test FAILs on Solaris/x86: FAIL: gcc.target/i386/pr124759.c (test for excess errors) UNRESOLVED: gcc.target/i386/pr124759.c compilation failed to produce executable With the native assembler, there's Assembler: pr124759.c "/var/tmp//cc86OTka.s", line 8 : Illegal mnemonic Near line: " endbr32" "/var/tmp//cc86OTka.s", line 8 : Syntax error Near line: " endbr32" while even with gas there's also Excess errors: cc1: warning: '-fhardened' not supported for this target Therefore this patch restricts the test to Linux, matching gcc.target/i386/fhardened-1.c. Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu. 2026-04-09 Rainer Orth gcc/testsuite: * gcc.target/i386/pr124759.c (dg-do): Restrict to Linux. --- diff --git a/gcc/testsuite/gcc.target/i386/pr124759.c b/gcc/testsuite/gcc.target/i386/pr124759.c index b5a86b7b9be..20bb45b5530 100644 --- a/gcc/testsuite/gcc.target/i386/pr124759.c +++ b/gcc/testsuite/gcc.target/i386/pr124759.c @@ -1,4 +1,4 @@ -/* { dg-do run { target avx_runtime } } */ +/* { dg-do run { target { avx_runtime && { *-*-linux* *-*-gnu* } } } } */ /* { dg-options "-fhardened -O3 -mavx" } */ struct a {