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]

[SPARC] Fix gcc.dg/lto/20090210 failure


Fiddling with -fPIC like that doesn't work on the SPARC.

Tested on sparc-sun-solaris2.{9,10}, applied on the mainline.


2010-11-19  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.dg/lto/20090210_1.c: Do not pass -fPIC on the SPARC.


-- 
Eric Botcazou
Index: gcc.dg/lto/20090210_1.c
===================================================================
--- gcc.dg/lto/20090210_1.c	(revision 166899)
+++ gcc.dg/lto/20090210_1.c	(working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-fPIC" }  */
+/* { dg-options "-fPIC" { target { ! sparc*-*-* } } } */
 static void
 f (int n)
 {

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