Message ID | 20110318135547.GB30899@tyan-ft48-01.lab.bos.redhat.com |
---|---|
State | New |
Headers | show |
OK. Jason
--- gcc/dwarf2out.c.jj 2011-03-17 21:34:34.000000000 +0100 +++ gcc/dwarf2out.c 2011-03-18 10:50:33.303546024 +0100 @@ -23667,7 +23667,8 @@ dwarf2out_finish (const char *filename) /* Output the address range information. We only put functions in the arange table, so don't write it out if we don't have any. */ - if (arange_table_in_use) + if ((text_section_used || cold_text_section_used || arange_table_in_use) + && info_section_emitted) { switch_to_section (debug_aranges_section); output_aranges ();