Re: [RFC] LTO and debug information

2009-12-15 Thread Richard Guenther
On Tue, 15 Dec 2009, Diego Novillo wrote: > On Sun, Dec 13, 2009 at 15:51, Richard Guenther 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.

Re: [RFC] LTO and debug information

2009-12-15 Thread Diego Novillo
On Sun, Dec 13, 2009 at 15:51, Richard Guenther 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

Re: [RFC] LTO and debug information

2009-12-13 Thread Richard Guenther
On Sun, 13 Dec 2009, Michael Matz wrote: > Hi, > > On Sun, 13 Dec 2009, Richard Guenther wrote: > > > *** free_lang_data_in_decl (tree decl) > > *** 4380,4408 > > } > > } > > > > ! if (TREE_CODE (decl) == PARM_DECL > > ! || TREE_CODE (decl) == FIELD_DECL

Re: [RFC] LTO and debug information

2009-12-13 Thread Michael Matz
Hi, On Sun, 13 Dec 2009, Richard Guenther wrote: > *** free_lang_data_in_decl (tree decl) > *** 4380,4408 > } > } > > ! if (TREE_CODE (decl) == PARM_DECL > ! || TREE_CODE (decl) == FIELD_DECL > ! || TREE_CODE (decl) == RESULT_DECL) > ! { > !

Re: [RFC] LTO and debug information

2009-12-13 Thread Richard Guenther
On Fri, 11 Dec 2009, Richard Guenther wrote: > > The following draft patch disables the debuginfo disabling when using > -flto or -fwhopr and fixes up things so that for C debugging (mostly) > works. > > The main question I have is how to proceed further here (with the > goal that simple debuggi

Re: [RFC] LTO and debug information

2009-12-13 Thread Richard Guenther
On Sat, 12 Dec 2009, Richard Guenther wrote: > On Fri, 11 Dec 2009, Richard Guenther wrote: > > > > > The following draft patch disables the debuginfo disabling when using > > -flto or -fwhopr and fixes up things so that for C debugging (mostly) > > works. > > > > The main question I have is ho

[RFC] LTO and debug information

2009-12-11 Thread Richard Guenther
The following draft patch disables the debuginfo disabling when using -flto or -fwhopr and fixes up things so that for C debugging (mostly) works. The main question I have is how to proceed further here (with the goal that simple debugging should be possible in 4.5). If we apply this patch then