This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] Possible functions for writing FIELD_DECLs
- From: Jim Blandy <jimb at codesourcery dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Kenneth Zadeck <zadeck at naturalbridge dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 15 Aug 2007 14:17:52 -0700
- Subject: Re: [lto] Possible functions for writing FIELD_DECLs
- References: <m3wsvzuhyc.fsf@codesourcery.com> <46C2A52E.1050909@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
> Jim Blandy wrote:
>> Here's my, um, theory as to how one might write DWARF for FIELD_DECLs
>> and get a reference to them for LTO's use. Kenny, I'm posting this in
>> hopes that you'll be able to add code to test it more quickly than I
>> could.
>>
>> gcc/ChangeLog.lto:
>> 2007-08-13 Jim Blandy <jimb@codesourcery.com>
>>
>> * dwarf2out.c (lto_field_ref, force_field_die): New functions.
>> * dwarf2out.h (lto_field_ref): New declaration.
>
> This looks good; please check it in. Please also do the lto/ side of
> the equation; Kenny will need lto_resolve_field_ref (like
> lto_resolve_fn_ref) to get the FIELD_DECL back.
I've committed this; thanks.
I've posted the patch for the reading side.