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 <ro@CeBiTec.Uni-Bielefeld.DE>
gcc/testsuite:
* gcc.target/i386/pr124759.c (dg-do): Restrict to Linux.
-/* { dg-do run { target avx_runtime } } */
+/* { dg-do run { target { avx_runtime && { *-*-linux* *-*-gnu* } } } } */
/* { dg-options "-fhardened -O3 -mavx" } */
struct a {