public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] require et feature pie for PIE tests
@ 2021-03-23 12:34 Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2021-03-23 12:34 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:25c9f26ec9a11980e330d9ff73bdda085ca60f99
commit 25c9f26ec9a11980e330d9ff73bdda085ca60f99
Author: Alexandre Oliva <oliva@adacore.com>
Date: Tue Mar 23 09:28:07 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 adds 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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] require et feature pie for PIE tests
@ 2021-03-24 6:29 Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2021-03-24 6:29 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b7dc36f6681ffc65b7724590f4beaf7c5bc9965e
commit b7dc36f6681ffc65b7724590f4beaf7c5bc9965e
Author: Alexandre Oliva <oliva@adacore.com>
Date: Tue Mar 23 09:28:07 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 adds 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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-24 6:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 12:34 [gcc(refs/users/aoliva/heads/testme)] require et feature pie for PIE tests Alexandre Oliva
2021-03-24 6:29 Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).