diff mbox

PR45413 - require nonpic target

Message ID 20110212133140.GA23594@bromo.med.uc.edu
State New
Headers show

Commit Message

Jack Howarth Feb. 12, 2011, 1:31 p.m. UTC
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.
diff mbox

Patch

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)