From: Francois-Xavier Coudert Date: Sun, 26 Nov 2023 10:55:05 +0000 (+0100) Subject: testsuite, i386: fix -fhardened test X-Git-Tag: basepoints/gcc-15~4286 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e40a13eaca4d87ec33beb0d9d31985e0023bfe3e;p=thirdparty%2Fgcc.git testsuite, i386: fix -fhardened test The new test at gcc.target/i386/cf_check-6.c fails on darwin with: Excess errors: cc1: warning: '-fhardened' not supported for this target gcc/testsuite/ChangeLog: * gcc.target/i386/cf_check-6.c: Only run on Linux. --- diff --git a/gcc/testsuite/gcc.target/i386/cf_check-6.c b/gcc/testsuite/gcc.target/i386/cf_check-6.c index 73b78dce8897..71ebdd7b9de8 100644 --- a/gcc/testsuite/gcc.target/i386/cf_check-6.c +++ b/gcc/testsuite/gcc.target/i386/cf_check-6.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target *-*-linux* *-*-gnu* } } */ /* { dg-options "-O2 -fhardened -mno-manual-endbr" } */ /* { dg-final { scan-assembler-times {\mendbr} 1 } } */ /* Test that -fhardened enables CET. */