]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset when...
authorSterling Augustine <saugustine@google.com>
Mon, 2 Dec 2013 22:10:44 +0000 (22:10 +0000)
committerSterling Augustine <sterling@gcc.gnu.org>
Mon, 2 Dec 2013 22:10:44 +0000 (22:10 +0000)
2013-12-02 Sterling Augustine  <saugustine@google.com>

        * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
        when there isn't a skeleton die.

From-SVN: r205603

gcc/ChangeLog
gcc/dwarf2out.c

index 1285f237f988170e97a796c82ce551493feb0dc7..1d65e4aa8cf48abe07c0f6ef74413803451449e3 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-02 Sterling Augustine  <saugustine@google.com>
+
+       * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
+       when there isn't a skeleton die.
+
 2013-12-02  Marek Polacek  <polacek@redhat.com>
 
        PR sanitizer/59353
index 14d1bf77f227e8d5f82509b02ff4a8c57c632180..59a7e4cc6767b7b8ebf501912a3c19aa2c3d315e 100644 (file)
@@ -9293,7 +9293,7 @@ output_pubnames (vec<pubname_entry, va_gc> *names)
              if (type_node != NULL)
                die_offset = (type_node->skeleton_die != NULL
                              ? type_node->skeleton_die->die_offset
-                             : 0);
+                             : comp_unit_die ()->die_offset);
            }
 
           output_pubname (die_offset, pub);