These uninitialized variables in bfd/elf32-arm.c caused the compilation
to fail with -Werror (the default) and -O3 (my choice)
--
Lucas Clemente Vella
[email protected]
--- elf32-arm.c 2010-02-22 05:06:48.000000000 -0300
+++ ../../binutils-2.20.1-work/bfd/elf32-arm.c 2010-09-11 21:23:17.810329223 -0300
@@ -3664,8 +3664,8 @@
{
struct elf32_arm_stub_hash_entry *stub_entry;
struct elf32_arm_link_hash_table *htab;
- const insn_sequence *template_sequence;
- int template_size, size;
+ const insn_sequence *template_sequence = NULL;
+ int template_size = 0, size;
/* Massage our args to the form they really have. */
stub_entry = (struct elf32_arm_stub_hash_entry *) gen_entry;
@@ -4682,8 +4682,8 @@
unsigned int section_id = a8_fixes[i].section->id;
asection *link_sec = htab->stub_group[section_id].link_sec;
asection *stub_sec = htab->stub_group[section_id].stub_sec;
- const insn_sequence *template_sequence;
- int template_size, size = 0;
+ const insn_sequence *template_sequence = NULL;
+ int template_size = 0, size = 0;
stub_entry = arm_stub_hash_lookup (&htab->stub_hash_table, stub_name,
TRUE, FALSE);
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils