[gcc r11-7812] require et feature pie for PIE tests
Alexandre Oliva
aoliva@gcc.gnu.org
Wed Mar 24 08:49:42 GMT 2021
https://gcc.gnu.org/g:9eec7c7686aedc79853699549d1c9eee0a0a84fd
commit r11-7812-g9eec7c7686aedc79853699549d1c9eee0a0a84fd
Author: Alexandre Oliva <oliva@adacore.com>
Date: Wed Mar 24 05:44:39 2021 -0300
require et feature pie for PIE tests
Both of these tests fail on platforms that reject -fPIC/-fPIE
altogether.
Other tests that perform PIE compilation or linking require the pie
feature, whether for -fpie/-fPIE compilation or for -pie linking.
This patch annotates both tests with the required target feature.
for gcc/testsuite/ChangeLog
* gcc.target/i386/pr97313.c: Require effective target feature pie.
* g++.target/i386/pr94185.C: Likewise.
Diff:
---
gcc/testsuite/g++.target/i386/pr94185.C | 1 +
gcc/testsuite/gcc.target/i386/pr97313.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/gcc/testsuite/g++.target/i386/pr94185.C b/gcc/testsuite/g++.target/i386/pr94185.C
index 2b3f7a1d676..ed3998010ae 100644
--- a/gcc/testsuite/g++.target/i386/pr94185.C
+++ b/gcc/testsuite/g++.target/i386/pr94185.C
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fPIE -fstack-protector-strong" } */
+/* { dg-require-effective-target pie } */
struct a {
int b;
diff --git a/gcc/testsuite/gcc.target/i386/pr97313.c b/gcc/testsuite/gcc.target/i386/pr97313.c
index ef93cf1cca8..711766b4132 100644
--- a/gcc/testsuite/gcc.target/i386/pr97313.c
+++ b/gcc/testsuite/gcc.target/i386/pr97313.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fPIE" } */
+/* { dg-require-effective-target pie } */
typedef struct {
int unspecified : 1;
More information about the Gcc-cvs
mailing list