From: Rainer Orth Date: Thu, 26 May 2011 12:44:16 +0000 (+0000) Subject: re PR target/49099 (sparc.c:‘sparc_solaris_elf_asm_named_section’ declared ‘static... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e32e6521aa6f699ddc1a00af5f38ceae120cb17;p=gcc.git re PR target/49099 (sparc.c:‘sparc_solaris_elf_asm_named_section’ declared ‘static’ but never defined) PR target/49099 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap declaration in TARGET_SOLARIS. From-SVN: r174279 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5670f013307..f4047ef597b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-26 Rainer Orth + + PR target/49099 + * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap + declaration in TARGET_SOLARIS. + 2011-05-26 Hariharan Sandanagobalane * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator. diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index c0f4e75590a..d65ced03d2d 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -392,8 +392,10 @@ static int save_or_restore_regs (int, int, rtx, int, int); 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);