re PR debug/49364 ([4.7 regressions] Empty .debug_abbrev sections confuse SGI nm)
PR debug/49364 * dwarf2out.c (output_abbrev_section): Don't return early if abbrev_die_table_in_use is 1. (dwarf2out_finish): Instead don't call output_abbrev_section nor emit abbrev_section_label in that case. From-SVN: r175694
This commit is contained in:
parent
21ea4922ac
commit
f60f32b356
@ -1,3 +1,11 @@
|
|||||||
|
2011-06-30 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR debug/49364
|
||||||
|
* dwarf2out.c (output_abbrev_section): Don't return early
|
||||||
|
if abbrev_die_table_in_use is 1.
|
||||||
|
(dwarf2out_finish): Instead don't call output_abbrev_section
|
||||||
|
nor emit abbrev_section_label in that case.
|
||||||
|
|
||||||
2011-06-30 Nick Clifton <nickc@redhat.com>
|
2011-06-30 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
|
* config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
|
||||||
|
@ -11358,9 +11358,6 @@ output_abbrev_section (void)
|
|||||||
{
|
{
|
||||||
unsigned long abbrev_id;
|
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)
|
for (abbrev_id = 1; abbrev_id < abbrev_die_table_in_use; ++abbrev_id)
|
||||||
{
|
{
|
||||||
dw_die_ref abbrev = abbrev_die_table[abbrev_id];
|
dw_die_ref abbrev = abbrev_die_table[abbrev_id];
|
||||||
@ -25226,9 +25223,12 @@ dwarf2out_finish (const char *filename)
|
|||||||
output_comp_unit (comp_unit_die (), debug_info_level >= DINFO_LEVEL_VERBOSE);
|
output_comp_unit (comp_unit_die (), debug_info_level >= DINFO_LEVEL_VERBOSE);
|
||||||
|
|
||||||
/* Output the abbreviation table. */
|
/* Output the abbreviation table. */
|
||||||
|
if (abbrev_die_table_in_use != 1)
|
||||||
|
{
|
||||||
switch_to_section (debug_abbrev_section);
|
switch_to_section (debug_abbrev_section);
|
||||||
ASM_OUTPUT_LABEL (asm_out_file, abbrev_section_label);
|
ASM_OUTPUT_LABEL (asm_out_file, abbrev_section_label);
|
||||||
output_abbrev_section ();
|
output_abbrev_section ();
|
||||||
|
}
|
||||||
|
|
||||||
/* Output location list section if necessary. */
|
/* Output location list section if necessary. */
|
||||||
if (have_location_lists)
|
if (have_location_lists)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user