This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]