]> gcc.gnu.org Git - gcc.git/commitdiff
re PR middle-end/46559 (libstdc++ link FAILs with -flto)
authorRichard Guenther <rguenther@suse.de>
Fri, 26 Nov 2010 16:01:26 +0000 (16:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 26 Nov 2010 16:01:26 +0000 (16:01 +0000)
2010-11-26  Richard Guenther  <rguenther@suse.de>

PR middle-end/46559
* dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
for location list processing.

From-SVN: r167181

gcc/ChangeLog
gcc/dwarf2out.c

index e64e927d3742b1a31008009b662b7dcc3bfef1a9..2687d4e6de15b9fbd4f770d2cc176d1aecefeb39 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-26  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/46559
+       * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
+       for location list processing.
+
 2010-11-26  Richard Guenther  <rguenther@suse.de>
 
        PR lto/46560
index 3195a9271c21527ddec71d4672d85220dd949aab..e230861158ed3f293a39b396b090255dfc6ef27c 100644 (file)
@@ -22965,7 +22965,6 @@ dwarf2out_finish (const char *filename)
   limbo_die_node *node, *next_node;
   comdat_type_node *ctnode;
   htab_t comdat_type_table;
-  dw_die_ref die = 0;
   unsigned int i;
 
   gen_remaining_tmpl_value_param_die_attribute ();
@@ -22998,8 +22997,8 @@ dwarf2out_finish (const char *filename)
      instance.  */
   for (node = limbo_die_list; node; node = next_node)
     {
+      dw_die_ref die = node->die;
       next_node = node->next;
-      die = node->die;
 
       if (die->die_parent == NULL)
        {
@@ -23177,7 +23176,7 @@ dwarf2out_finish (const char *filename)
     add_AT_macptr (comp_unit_die (), DW_AT_macro_info, macinfo_section_label);
 
   if (have_location_lists)
-    optimize_location_lists (die);
+    optimize_location_lists (comp_unit_die ());
 
   /* Output all of the compilation units.  We put the main one last so that
      the offsets are available to output_pubnames.  */
@@ -23222,7 +23221,7 @@ dwarf2out_finish (const char *filename)
       ASM_GENERATE_INTERNAL_LABEL (loc_section_label,
                                   DEBUG_LOC_SECTION_LABEL, 0);
       ASM_OUTPUT_LABEL (asm_out_file, loc_section_label);
-      output_location_lists (die);
+      output_location_lists (comp_unit_die ());
     }
 
   /* Output public names table if necessary.  */
This page took 0.120324 seconds and 5 git commands to generate.