re PR debug/46704 (Ada compiler fails to build itself)
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 6 Jan 2011 23:36:25 +0000 (23:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 6 Jan 2011 23:36:25 +0000 (23:36 +0000)
PR debug/46704
* dwarf2out.c (dwarf2out_finish): Output the debug_aranges section
only when it is not empty.

From-SVN: r168557

gcc/ChangeLog
gcc/dwarf2out.c

index 9661e71854048557fce1b9192f009ea9cda1e314..4d7a0062f64b027fc6514f5499c76c11aea18f69 100644 (file)
@@ -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.
index 22ee3240a3653c948116e019d0a64938127e77b8..3fb01a86decec5583e26a3a3e4bdde910fe5b0e2 100644 (file)
@@ -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 ();