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: [lto] PATCH: Read DWARF 3


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


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