This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
tilegx warning
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 1 Mar 2012 12:26:11 +1030
- Subject: tilegx warning
- Authentication-results: mr.google.com; spf=pass (google.com: domain of amodra@gmail.com designates 10.68.191.230 as permitted sender) smtp.mail=amodra@gmail.com; dkim=pass header.i=amodra@gmail.com
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