* [SPARC] Fix gcc.dg/lto/20090210 failure
@ 2010-11-19 12:21 Eric Botcazou
2010-11-21 18:29 ` Eric Botcazou
0 siblings, 1 reply; 2+ messages in thread
From: Eric Botcazou @ 2010-11-19 12:21 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 254 bytes --]
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
[-- Attachment #2: p.diff --]
[-- Type: text/x-diff, Size: 320 bytes --]
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)
{
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [SPARC] Fix gcc.dg/lto/20090210 failure
2010-11-19 12:21 [SPARC] Fix gcc.dg/lto/20090210 failure Eric Botcazou
@ 2010-11-21 18:29 ` Eric Botcazou
0 siblings, 0 replies; 2+ messages in thread
From: Eric Botcazou @ 2010-11-21 18:29 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 301 bytes --]
> 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.
--
Eric Botcazou
[-- Attachment #2: p.diff --]
[-- Type: text/x-diff, Size: 469 bytes --]
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];
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-21 14:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-19 12:21 [SPARC] Fix gcc.dg/lto/20090210 failure Eric Botcazou
2010-11-21 18:29 ` Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).