[PATCH]: elf32-m32c.c: Initialise the gap variable
Nick Clifton
nickc@redhat.com
Thu Mar 2 09:37:00 GMT 2006
Hi Guys,
I am checking in the patch below so that the variable 'gap' in the
function m32c_elf_relax_section() is initialised before it is used.
This was causing a compile time warning message from the gcc 4.0
based compiler that I am currently using.
Cheers
Nick
bfd/ChangeLog
2006-03-02 Nick Clifton <nickc@redhat.com>
* elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
Index: bfd/elf32-m32c.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m32c.c,v
retrieving revision 1.3
diff -c -3 -p -r1.3 elf32-m32c.c
*** bfd/elf32-m32c.c 24 Feb 2006 22:10:35 -0000 1.3
--- bfd/elf32-m32c.c 2 Mar 2006 09:27:43 -0000
*************** m32c_elf_relax_section
*** 1532,1537 ****
--- 1532,1538 ----
/* Setting gap_size nonzero is the flag which means "something
shrunk". */
gap_size = 0;
+ gap = NULL;
new_type = ELF32_R_TYPE(srel->r_info);
pc = sec->output_section->vma + sec->output_offset
More information about the Binutils
mailing list