diff mbox

Only expose sparc_solaris_elf_asm_named_section declaration on Solaris (PR target/49099)

Message ID yddlixtn2ce.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth May 26, 2011, 11:11 a.m. UTC
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.

Comments

Eric Botcazou May 26, 2011, 12:40 p.m. UTC | #1
> 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.
diff mbox

Patch

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