This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] LTO and debug information
On Sun, Dec 13, 2009 at 15:51, Richard Guenther <rguenther@suse.de> wrote:
> + /* ??? ÂWe could free non-constant DECL_SIZE, DECL_SIZE_UNIT
> + Â Âand DECL_FIELD_OFFSET. ÂBut it's cheap enough to not do
> + Â Âthat and refrain from adding workarounds to dwarf2out.c Â*/
> +
> + /* DECL_FCONTEXT is only used for debug info generation. Â*/
> + if (TREE_CODE (decl) == FIELD_DECL
> + Â Â && debug_info_level < DINFO_LEVEL_TERSE)
> + Â DECL_FCONTEXT (decl) = NULL_TREE;
> +
Yes, keeping a reminder here will help future work in early debug
generation. As for the rest of the patch, anything that gets us
closer to a working -g -flto is better than nothing. Not clearing
these fields should not be a big deal for now.
The patch is OK with the reminders that Michael suggested.
Diego.