This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Add lost ATTRIBUTE_UNUSED
- From: Richard Sandiford <rsandifo at nildram dot co dot uk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 28 Oct 2007 11:20:46 +0000
- Subject: [committed] Add lost ATTRIBUTE_UNUSED
Removing the forward static declarations from mips.c lost an
ATTRIBUTE_UNUSED for mips_output_dwarf_dtprel (which was attached
to the declaration rather than the definition). I hadn't hit this
because I was using a recent version of binutils. I double-checked,
and this seems to be the only instance of the problem.
Richard
gcc/
PR target/33895
* config/mips/mips.c (mips_output_dwarf_dtprel): Add ATTRIBUTE_UNUSED.
Index: gcc/config/mips/mips.c
===================================================================
--- gcc/config/mips/mips.c (revision 129650)
+++ gcc/config/mips/mips.c (working copy)
@@ -6783,7 +6783,7 @@ mips_output_filename (FILE *stream, cons
/* Implement TARGET_ASM_OUTPUT_DWARF_DTPREL. */
-static void
+static void ATTRIBUTE_UNUSED
mips_output_dwarf_dtprel (FILE *file, int size, rtx x)
{
switch (size)