x86: Require Linux target for PR target/93492 tests
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 10 Jul 2020 21:50:03 +0000 (14:50 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 12 Jul 2020 12:06:21 +0000 (05:06 -0700)
Since -fpatchable-function-entry is only supported on Linux and used by
Linux kernel, require Linux target for PR target/93492 tests.

PR target/93492
* gcc.target/i386/pr93492-1.c: Require Linux target.
* gcc.target/i386/pr93492-2.c: Likewise.
* gcc.target/i386/pr93492-3.c: Likewise.
* gcc.target/i386/pr93492-4.c: Likewise.
* gcc.target/i386/pr93492-5.c: Likewise.

gcc/testsuite/gcc.target/i386/pr93492-1.c
gcc/testsuite/gcc.target/i386/pr93492-2.c
gcc/testsuite/gcc.target/i386/pr93492-3.c
gcc/testsuite/gcc.target/i386/pr93492-4.c
gcc/testsuite/gcc.target/i386/pr93492-5.c

index f978d2e..7a82d0c 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do "compile" } */
+/* { dg-do "compile" { target *-*-linux* } } */
 /* { dg-options "-O1 -fcf-protection -mmanual-endbr" } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index ec26d4c..3d67095 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do "compile" } */
+/* { dg-do "compile" { target *-*-linux* } } */
 /* { dg-options "-O1 -fcf-protection -mmanual-endbr -fasynchronous-unwind-tables" } */
 
 /* Test the placement of the .LPFE1 label.  */
index 1f03c62..52a19e5 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do "compile" } */
+/* { dg-do "compile" { target *-*-linux* } } */
 /* { dg-require-effective-target mfentry } */
 /* { dg-options "-O1 -fcf-protection -mmanual-endbr -mfentry -pg -fasynchronous-unwind-tables" } */
 
index d193df8..8f205c3 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do "compile" } */
+/* { dg-do "compile" { target *-*-linux* } } */
 /* { dg-options "-O1 -fpatchable-function-entry=1 -fasynchronous-unwind-tables" } */
 
 /* Test the placement of the .LPFE1 label.  */
index d04077c..fcf4ad4 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do "compile" } */
-/* { dg-require-effective-target mfentry } */
+/* { dg-do "compile" { target *-*-linux* } } */
 /* { dg-options "-O1 -fpatchable-function-entry=1 -mfentry -pg -fasynchronous-unwind-tables" } */
 
 /* Test the placement of the .LPFE1 label.  */