public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Only expose sparc_solaris_elf_asm_named_section declaration on Solaris (PR target/49099)
@ 2011-05-26 11:55 Rainer Orth
  2011-05-26 13:33 ` Eric Botcazou
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer Orth @ 2011-05-26 11:55 UTC (permalink / raw)
  To: gcc-patches; +Cc: Eric Botcazou

As reported in the PR, mainline fails to build on non-Solaris SPARC
targets.  The following patch fixes this.

Bootstrapped without regressions on sparc-sun-solaris2.11 with as and
gas, tested with a i386-pc-solaris2.10 x sparc-elf cross with
--enable-werror-always.

Ok for mainline?

	Rainer


2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR target/49099
	* config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
	declaration in TARGET_SOLARIS.

diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -392,8 +392,10 @@ static int save_or_restore_regs (int, in
 static void emit_save_or_restore_regs (int);
 static void sparc_asm_function_prologue (FILE *, HOST_WIDE_INT);
 static void sparc_asm_function_epilogue (FILE *, HOST_WIDE_INT);
+#ifdef TARGET_SOLARIS
 static void sparc_solaris_elf_asm_named_section (const char *, unsigned int,
 						 tree) ATTRIBUTE_UNUSED;
+#endif
 static int sparc_adjust_cost (rtx, rtx, rtx, int);
 static int sparc_issue_rate (void);
 static void sparc_sched_init (FILE *, int, int);


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Only expose sparc_solaris_elf_asm_named_section declaration on Solaris (PR target/49099)
  2011-05-26 11:55 Only expose sparc_solaris_elf_asm_named_section declaration on Solaris (PR target/49099) Rainer Orth
@ 2011-05-26 13:33 ` Eric Botcazou
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Botcazou @ 2011-05-26 13:33 UTC (permalink / raw)
  To: Rainer Orth; +Cc: gcc-patches

> 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>
> 	PR target/49099
> 	* config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
> 	declaration in TARGET_SOLARIS.

OK, thanks.

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-26 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26 11:55 Only expose sparc_solaris_elf_asm_named_section declaration on Solaris (PR target/49099) Rainer Orth
2011-05-26 13:33 ` 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).