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

login
register
mail settings
Submitter Eric Botcazou
Date Nov. 19, 2010, 10:02 a.m.
Message ID <201011191102.23609.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/72234/
State New
Headers show

Comments

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

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