This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed] Fix GC ICE due to dwarf2out bug (PR debug/65807)


On Apr 20, 2015, at 6:34 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> add_AT_wide is the only add_AT_* that doesn't clear or otherwise initialize
> dw_attr_val.val_entry field, so it contains random garbage, which isn't
> desirable when ggc walks it during collections.
> 
> Supposedly this omission originates from the val_entry addition being added
> everywhere only after wide-int branch grabbed some add_AT_* routine from
> dwarf2out.c as example for the add_AT_wide addition.

I can indeed confirm this is what happened.

> Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk
> and 5.1 as obvious.

The fix looks good to me.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]