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

Submitted by Eric Botcazou on Nov. 19, 2010, 10:02 a.m.

Details

Message ID 201011191102.23609.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou Nov. 19, 2010, 10:02 a.m.
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.

Patch hide | download patch | download mbox

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