aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2011-01-06 23:36:25 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-01-06 23:36:25 +0000
commit9f82de11217c56680fddfb42d18dcf7a47019211 (patch)
treed1257802252b83de709bec3b99408b262f64832d /gcc/dwarf2out.c
parent14b52538d249750e4d4e5c7daa2186aeb7052576 (diff)
downloadgcc-9f82de11217c56680fddfb42d18dcf7a47019211.zip
gcc-9f82de11217c56680fddfb42d18dcf7a47019211.tar.gz
gcc-9f82de11217c56680fddfb42d18dcf7a47019211.tar.bz2
re PR debug/46704 (Ada compiler fails to build itself)
PR debug/46704 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only when it is not empty. From-SVN: r168557
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 22ee324..3fb01a8 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -23324,7 +23324,7 @@ 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 (fde_table_in_use)
+ if (arange_table_in_use)
{
switch_to_section (debug_aranges_section);
output_aranges ();