This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]