aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/dwarf2out.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9661e71..4d7a006 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,10 @@
-2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
+2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR debug/46704
+ * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section
+ only when it is not empty.
+
+2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
Bobcat (btver1) Enablement
* config.gcc (i[34567]86-*-linux* | ...): Add btver1.
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 ();