diff mbox

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

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

Commit Message

Eric Botcazou Nov. 21, 2010, 2:06 p.m. UTC
> Fiddling with -fPIC like that doesn't work on the SPARC.
>
> Tested on sparc-sun-solaris2.{9,10}, applied on the mainline.

Likewise for g++.dg/lto/20090303.


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

        * g++.dg/lto/20090303_0.C: Do not pass -fPIC on the SPARC.
diff mbox

Patch

Index: g++.dg/lto/20090303_0.C
===================================================================
--- g++.dg/lto/20090303_0.C	(revision 166973)
+++ g++.dg/lto/20090303_0.C	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-lto-do run } */
 /* { dg-lto-options {{-flto -flto-partition=1to1 -fPIC}} } */
+/* { dg-lto-options {{-flto -flto-partition=1to1}} { target sparc*-*-* } } */
 /* { dg-suppress-ld-options {-fPIC} }  */
 void foobar(int *, int* __x)    ;
 int test_ints[30];