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 f978d2e5220d31d6bec095789f8341cbc0ae8552..7a82d0c68e1f7aa74ec957739b8a8aabc7cf104f 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 ec26d4cc3674d2b547eb3ed1ed434c60f8fe0ba6..3d67095fd10434b1c6e69c23cf1565ead4ff0eaf 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 1f03c6271202b8bf64bdafe9a9a478a87b285127..52a19e51513623bb88887a7bc38c95b65700cd49 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 d193df8e66d968ffb37fc2a48d99349438e0856e..8f205c345b8c171c085b6b4374af035ab274b696 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 d04077c6007a95ccfbedf35e69306dacbc93305a..fcf4ad43aa206c14b41375f9194fd2e1c772119b 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.  */