]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: i386: Restrict gcc.target/i386/pr124759.c to Linux
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 9 Apr 2026 08:02:18 +0000 (10:02 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 9 Apr 2026 08:02:18 +0000 (10:02 +0200)
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.

gcc/testsuite/gcc.target/i386/pr124759.c

index b5a86b7b9bed8a489fc5c44b3276f046ca7550fc..20bb45b5530293157113ae0d0f82205a5039dae2 100644 (file)
@@ -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 {