This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR45413 - require nonpic target
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: bernds at gcc dot gnu dot org
- Date: Sat, 12 Feb 2011 08:31:40 -0500
- Subject: [PATCH] PR45413 - require nonpic target
The gcc.target/i386/combine-mul.c testcase only passes when
-fpic or -fPIC isn't used. Bernd Schmidt has been unable to find a fix
so we should limit this test with dg-require-effective-target nonpic.
Note this test fails on i386/x86_64 linux but the testsuite is rarely
run with -fpic/-fPIC on that target as below.
http://gcc.gnu.org/ml/gcc-testresults/2010-10/msg02482.html
Okay for gcc trunk?
Jack
2011-02-12 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/45413
* gcc.target/i386/combine-mul.c: Require nonpic target.
Index: gcc.target/i386/combine-mul.c
===================================================================
--- gcc.target/i386/combine-mul.c (revision 170067)
+++ gcc.target/i386/combine-mul.c (working copy)
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
+/* { dg-require-effective-target nonpic } */
/* { dg-final { scan-assembler-not "12345" } } */
static inline unsigned int myrnd (void)