x86: Require Linux target for PR target/93492 tests

Message ID 20200710215249.48226-1-hjl.tools@gmail.com
State New
Headers show
Series
  • x86: Require Linux target for PR target/93492 tests
Related show

Commit Message

H.J. Lu via Gcc-patches July 10, 2020, 9:52 p.m.
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 | 2 +-
 gcc/testsuite/gcc.target/i386/pr93492-2.c | 2 +-
 gcc/testsuite/gcc.target/i386/pr93492-3.c | 2 +-
 gcc/testsuite/gcc.target/i386/pr93492-4.c | 2 +-
 gcc/testsuite/gcc.target/i386/pr93492-5.c | 3 +--
 5 files changed, 5 insertions(+), 6 deletions(-)

-- 
2.26.2

Comments

Rainer Orth July 12, 2020, 10:35 a.m. | #1
Hi H.J.,

> 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.


Ok.

Thanks.
	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Patch

diff --git a/gcc/testsuite/gcc.target/i386/pr93492-1.c b/gcc/testsuite/gcc.target/i386/pr93492-1.c
index f978d2e5220..7a82d0c68e1 100644
--- a/gcc/testsuite/gcc.target/i386/pr93492-1.c
+++ b/gcc/testsuite/gcc.target/i386/pr93492-1.c
@@ -1,4 +1,4 @@ 
-/* { dg-do "compile" } */
+/* { dg-do "compile" { target *-*-linux* } } */
 /* { dg-options "-O1 -fcf-protection -mmanual-endbr" } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
diff --git a/gcc/testsuite/gcc.target/i386/pr93492-2.c b/gcc/testsuite/gcc.target/i386/pr93492-2.c
index ec26d4cc367..3d67095fd10 100644
--- a/gcc/testsuite/gcc.target/i386/pr93492-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr93492-2.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/pr93492-3.c b/gcc/testsuite/gcc.target/i386/pr93492-3.c
index 1f03c627120..52a19e51513 100644
--- a/gcc/testsuite/gcc.target/i386/pr93492-3.c
+++ b/gcc/testsuite/gcc.target/i386/pr93492-3.c
@@ -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" } */
 
diff --git a/gcc/testsuite/gcc.target/i386/pr93492-4.c b/gcc/testsuite/gcc.target/i386/pr93492-4.c
index d193df8e66d..8f205c345b8 100644
--- a/gcc/testsuite/gcc.target/i386/pr93492-4.c
+++ b/gcc/testsuite/gcc.target/i386/pr93492-4.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/pr93492-5.c b/gcc/testsuite/gcc.target/i386/pr93492-5.c
index d04077c6007..fcf4ad43aa2 100644
--- a/gcc/testsuite/gcc.target/i386/pr93492-5.c
+++ b/gcc/testsuite/gcc.target/i386/pr93492-5.c
@@ -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.  */