re PR debug/48041 (dwarf2out emits unnecessary null byte in empty .debug_abbrev section)

PR debug/48041
* dwarf2out.c (output_abbrev_section): Only write table when
abbrev_die_table_in_use > 1.

From-SVN: r171441
This commit is contained in:
Mark Wielaard 2011-03-25 09:35:41 +00:00 committed by Mark Wielaard
parent fe052134f6
commit 2a5ac39a3e
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2011-03-24 Mark Wielaard <mjw@redhat.com>
PR debug/48041
* dwarf2out.c (output_abbrev_section): Only write table when
abbrev_die_table_in_use > 1.
2011-02-24 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.

View file

@ -11056,6 +11056,9 @@ output_abbrev_section (void)
{
unsigned long abbrev_id;
if (abbrev_die_table_in_use == 1)
return;
for (abbrev_id = 1; abbrev_id < abbrev_die_table_in_use; ++abbrev_id)
{
dw_die_ref abbrev = abbrev_die_table[abbrev_id];