[lto] PATCH: Read DWARF 3
Mark Mitchell
mark@codesourcery.com
Tue Jun 27 04:42:00 GMT 2006
Daniel Berlin wrote:
> Do you ever plan on supporting multiple DW_TAG_compile_unit's in the
> same object file?
Yes, definitely.
I meant to do that for this first cut, but failed to get to it.
> If so, i'll happily make the code work for this *now*.
That would be great!
> A *large* amount of the reader had to be changed to pass a compilation
> unit structure around properly, so that we could support
> DW_form_ref_addr (which is something you will likely need for compaction
> across CU's).
Note that we do already have a good place to pass data around the
reader: the lto_context structure. So, it should be a matter of putting
a pointer to the abbreviation information there, and then changing
lto_abbrev_lookup to use the abbreviation table pointed to by
lto_context, rather than assuming there is only one.
If you wouldn't mind, I'd like to review the patch before it goes in.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list