This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] PATCH: Add -fno-pie to gcc.target/i386/pr54445-2.c
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org, Uros Bizjak <ubizjak at gmail dot com>
- Date: Sun, 11 Jan 2015 16:34:13 -0800
- Subject: [testsuite] PATCH: Add -fno-pie to gcc.target/i386/pr54445-2.c
- Authentication-results: sourceware.org; auth=none
Since PIE is also PIC, we need to add -fno-pie to avoid PIC. OK for trunk?
Thanks.
H.J.
---
gcc/testsuite/gcc.target/i386/pr54445-2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2015-01-11 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/pr54445-2.c: Add -fno-pie.
diff --git a/gcc/testsuite/gcc.target/i386/pr54445-2.c b/gcc/testsuite/gcc.target/i386/pr54445-2.c
index 5151c13..4d49816 100644
--- a/gcc/testsuite/gcc.target/i386/pr54445-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr54445-2.c
@@ -1,5 +1,5 @@
/* { dg-do compile { target { *-*-linux* && { ! { ia32 } } } } } */
-/* { dg-options "-O2 -fno-pic" } */
+/* { dg-options "-O2 -fno-pic -fno-pie" } */
__thread unsigned char tls_array[64];
--
1.9.3