fix build when using gcc-4.6

Alan Modra amodra@gmail.com
Mon Jun 28 14:50:00 GMT 2010


A couple more fixes.

bfd/
	* compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
	to silence gcc warning.
cgen/
	* cpu/mep.opc (mep_examine_ivc2_insns): Delete set but unused var.
opcodes/
	* mep-dis.c: Regenerate.

Index: bfd/compress.c
===================================================================
RCS file: /cvs/src/src/bfd/compress.c,v
retrieving revision 1.2
diff -u -p -r1.2 compress.c
--- bfd/compress.c	9 Sep 2009 21:38:57 -0000	1.2
+++ bfd/compress.c	28 Jun 2010 14:13:09 -0000
@@ -51,12 +51,10 @@ DESCRIPTION
 */
 
 bfd_boolean
-bfd_uncompress_section_contents (bfd_byte **buffer, bfd_size_type *size)
+bfd_uncompress_section_contents (bfd_byte **buffer ATTRIBUTE_UNUSED,
+				 bfd_size_type *size ATTRIBUTE_UNUSED)
 {
 #ifndef HAVE_ZLIB_H
-  /* These are just to quiet gcc.  */
-  buffer = 0;
-  size = 0;
   return FALSE;
 #else
   bfd_size_type compressed_size = *size;
Index: cgen/cpu/mep.opc
===================================================================
RCS file: /cvs/src/src/cgen/cpu/mep.opc,v
retrieving revision 1.11
diff -u -p -r1.11 mep.opc
--- cgen/cpu/mep.opc	18 Dec 2009 06:04:33 -0000	1.11
+++ cgen/cpu/mep.opc	28 Jun 2010 14:14:08 -0000
@@ -1322,15 +1322,10 @@ mep_examine_ivc2_insns (CGEN_CPU_DESC cd
 {
   int status;
   int buflength;
-  int cop2buflength;
   bfd_byte buf[8];
   bfd_byte insn[8];
   int e;
 
-  /* At this time we're not supporting internally parallel
-     coprocessors, so cop2buflength will always be 0.  */
-  cop2buflength = 0;
-
   /* Read in 64 bits.  */
   buflength = 8; /* VLIW insn spans 8 bytes.  */
   status = (*info->read_memory_func) (pc, buf, buflength, info);

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list