Fix compilation with GCC 4.4.7.
binutils/ 2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com> Fix compilation with GCC 4.4.7. * dwarf.c (display_loclists_list, display_debug_rnglists_list): Initialize begin and end.
This commit is contained in:
parent
d538e36dec
commit
9dfd0db952
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
Fix compilation with GCC 4.4.7.
|
||||||
|
* dwarf.c (display_loclists_list, display_debug_rnglists_list):
|
||||||
|
Initialize begin and end.
|
||||||
|
|
||||||
2017-02-27 Rudy Y <rudyy.id@gmail.com>
|
2017-02-27 Rudy Y <rudyy.id@gmail.com>
|
||||||
|
|
||||||
PR 20881
|
PR 20881
|
||||||
|
|
|
@ -5011,8 +5011,9 @@ display_loclists_list (struct dwarf_section *section,
|
||||||
int dwarf_version;
|
int dwarf_version;
|
||||||
unsigned int bytes_read;
|
unsigned int bytes_read;
|
||||||
|
|
||||||
dwarf_vma begin;
|
/* Initialize it due to a false compiler warning. */
|
||||||
dwarf_vma end;
|
dwarf_vma begin = -1;
|
||||||
|
dwarf_vma end = -1;
|
||||||
dwarf_vma length;
|
dwarf_vma length;
|
||||||
int need_frame_base;
|
int need_frame_base;
|
||||||
|
|
||||||
|
@ -5873,7 +5874,8 @@ display_debug_rnglists_list (unsigned char *start, unsigned char *finish,
|
||||||
{
|
{
|
||||||
unsigned long off = offset + (start - next);
|
unsigned long off = offset + (start - next);
|
||||||
enum dwarf_range_list_entry rlet;
|
enum dwarf_range_list_entry rlet;
|
||||||
dwarf_vma begin, length, end;
|
/* Initialize it due to a false compiler warning. */
|
||||||
|
dwarf_vma begin = -1, length, end = -1;
|
||||||
unsigned int bytes_read;
|
unsigned int bytes_read;
|
||||||
|
|
||||||
if (start + 1 > finish)
|
if (start + 1 > finish)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue