* elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
var warning at -O3.
This commit is contained in:
parent
59a9808d56
commit
2a2294071c
|
@ -1,3 +1,8 @@
|
|||
2010-10-25 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
|
||||
var warning at -O3.
|
||||
|
||||
2010-10-25 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
|
||||
|
|
|
@ -3704,7 +3704,12 @@ find_stub_size_and_template (enum elf32_arm_stub_type stub_type,
|
|||
unsigned int size;
|
||||
|
||||
template_sequence = stub_definitions[stub_type].template_sequence;
|
||||
if (stub_template)
|
||||
*stub_template = template_sequence;
|
||||
|
||||
template_size = stub_definitions[stub_type].template_size;
|
||||
if (stub_template_size)
|
||||
*stub_template_size = template_size;
|
||||
|
||||
size = 0;
|
||||
for (i = 0; i < template_size; i++)
|
||||
|
@ -3723,16 +3728,10 @@ find_stub_size_and_template (enum elf32_arm_stub_type stub_type,
|
|||
|
||||
default:
|
||||
BFD_FAIL ();
|
||||
return FALSE;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (stub_template)
|
||||
*stub_template = template_sequence;
|
||||
|
||||
if (stub_template_size)
|
||||
*stub_template_size = template_size;
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue