[PATCH] PR45413 - require nonpic target
Jack Howarth
howarth@bromo.med.uc.edu
Sat Feb 12 13:44:00 GMT 2011
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)
More information about the Gcc-patches
mailing list