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: Mark Mitchell <mark at codesourcery dot com>
- To: Jim Blandy <jimb 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 00:03:10 -0700
- Subject: Re: [lto] Possible functions for writing FIELD_DECLs
- References: <m3wsvzuhyc.fsf@codesourcery.com>
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.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713