This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix Solaris/SPARC bootstrap without gas
David Miller <davem@davemloft.net> writes:
> Thanks for fixing this Rainer.
>
> See Jakub, this is why I asked you to review the change before I
> committed :-)
While my patch was enough to get past stage1, I get another
warning-as-error in stage2:
cc1: warnings being treated as errors
/vol/gcc/src/hg/trunk/solaris/gcc/config/sparc/sparc.c: In function 'sparc_elf_asm_named_section':
/vol/gcc/src/hg/trunk/solaris/gcc/config/sparc/sparc.c:7992:14: error: unused parameter 'decl'
The following patch fixes this, installed as obvious.
Bootstraps of the 4.3 and 4.4 branches worked without.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
unused.
Index: config/sparc/sparc.c
===================================================================
--- config/sparc/sparc.c (revision 156356)
+++ config/sparc/sparc.c (working copy)
@@ -7989,7 +7989,7 @@
#if defined (OBJECT_FORMAT_ELF) && !HAVE_GNU_AS
static void
sparc_elf_asm_named_section (const char *name, unsigned int flags,
- tree decl)
+ tree decl ATTRIBUTE_UNUSED)
{
fprintf (asm_out_file, "\t.section\t\"%s\"", name);