From 267891bd3c7ce3e16662eb2be7273f0bc8be9e7e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 10 Jul 2020 14:50:03 -0700 Subject: [PATCH] x86: Require Linux target for PR target/93492 tests 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(-) 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. */ -- 2.30.2