From: Sterling Augustine Date: Mon, 2 Dec 2013 22:10:44 +0000 (+0000) Subject: dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset when... X-Git-Tag: releases/gcc-4.9.0~2326 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=858c19053beed37c2715ba2d49426d2154beaa1e;p=thirdparty%2Fgcc.git dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset when... 2013-12-02 Sterling Augustine   * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset when there isn't a skeleton die. From-SVN: r205603 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1285f237f988..1d65e4aa8cf4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-12-02 Sterling Augustine   + + * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset + when there isn't a skeleton die. + 2013-12-02 Marek Polacek PR sanitizer/59353 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 14d1bf77f227..59a7e4cc6767 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -9293,7 +9293,7 @@ output_pubnames (vec *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);