Re: [lto] [RFC] Design proposal for debug support in LTO

2008-12-29 Thread Mark Mitchell
Richard Guenther wrote: >> Hve you considered to just use DWARF and translate the DWARF debug >> info to a different format in LTRANS? For example, user wants stabs, >> LGEN generates DWARF, LTRANS reads in the DWARF, and dbxout is >> modified to translate the DWARF to stabs. > > +1 +2 This wa

Re: [lto] [RFC] Design proposal for debug support in LTO

2008-12-29 Thread Richard Guenther
On Wed, Dec 24, 2008 at 11:07 AM, Steven Bosscher wrote: > On Tue, Dec 23, 2008 at 8:03 PM, Cary Coutant wrote: >> Another approach is to generate the debug information earlier -- in >> the front-end. This approach would significantly alter the structure >> of the compiler and would be a major un

Re: [lto] [RFC] Design proposal for debug support in LTO

2008-12-24 Thread Steven Bosscher
On Tue, Dec 23, 2008 at 8:03 PM, Cary Coutant wrote: > Another approach is to generate the debug information earlier -- in > the front-end. This approach would significantly alter the structure > of the compiler and would be a major undertaking. Would it be more work than what you are proposing?

[lto] [RFC] Design proposal for debug support in LTO

2008-12-23 Thread Cary Coutant
LTO currently doesn't support the generation of debug info very well, as we discard much of the front-end information that is needed for debug info before streaming the IR to the intermediate file. I've written up the following proposal to fix this, and have also posted it on the gcc wiki: http: