]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, i386: fix -fhardened test
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 26 Nov 2023 10:55:05 +0000 (11:55 +0100)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 26 Nov 2023 10:55:05 +0000 (11:55 +0100)
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.

gcc/testsuite/gcc.target/i386/cf_check-6.c

index 73b78dce8897bd08f6291c90485625b62012da2e..71ebdd7b9de88c0422244323e8813b414d96e77a 100644 (file)
@@ -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.  */