This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

tilegx warning


gcc-4.6.1 isn't clever enough to see that mask really can't be used
uninitialised.
.../elfxx-tilegx.c: In function âtilegx_elf_relocate_sectionâ:
.../elfxx-tilegx.c:3287:28: error: âmaskâ may be used uninitialised in this function [-Werror=uninitialized]

	* elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.

Index: bfd/elfxx-tilegx.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-tilegx.c,v
retrieving revision 1.5
diff -u -p -r1.5 elfxx-tilegx.c
--- bfd/elfxx-tilegx.c	25 Feb 2012 22:24:20 -0000	1.5
+++ bfd/elfxx-tilegx.c	1 Mar 2012 01:53:05 -0000
@@ -3230,7 +3230,7 @@ tilegx_elf_relocate_section (bfd *output
 	      int dest_begin = is_pipe0 ? 0 : 31;
 	      int src_begin;
 	      const bfd_byte *insn;
-	      const bfd_byte *mask;
+	      const bfd_byte *mask = NULL;
 
 	      if (is_tls_le)
 		{

-- 
Alan Modra
Australia Development Lab, IBM


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