[Dwarf Patch] Use offset into debug_info for pubtype name referring to pubtype section

Sterling Augustine saugustine@google.com
Mon Dec 2 21:54:00 GMT 2013


The enclosed patch fixes a mismerge from google/gcc-4_7 to main. When
outputting a pubtype whose type has no skeleton section, it's DIE
offset should be from the comp_unit_die, instead of zero. Zero is
actually a place-holder for the end of the pubtypes.

Sterling

gcc/ChangeLog

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pubtypes-bug.tot-patch
Type: application/octet-stream
Size: 899 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20131202/22ae6102/attachment.obj>


More information about the Gcc-patches mailing list