This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR testsuite/48276: FAIL: gcc.target/i386/pr47502-2.c
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 28 Mar 2011 06:14:16 -0700
- Subject: PATCH: PR testsuite/48276: FAIL: gcc.target/i386/pr47502-2.c
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
gcc.target/i386/pr47502-2.c uses EBX which doesn't work with PIC.
I am checking in this patch as an obvious fix.
H.J.
---
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a9f70d0..53424d2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR testsuite/48276
+ * gcc.target/i386/pr47502-2.c: Add -fno-pic.
+
2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/slp-1.c: New test.
diff --git a/gcc/testsuite/gcc.target/i386/pr47502-2.c b/gcc/testsuite/gcc.target/i386/pr47502-2.c
index 1f57ea0..a8dc1ca 100644
--- a/gcc/testsuite/gcc.target/i386/pr47502-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr47502-2.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -fno-pic" } */
int
foo (int how, const void *set, void *oset)