This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 4.6.1-RC1: Using LTO in canadian cross
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Georg-Johann Lay <avr at gjlay dot de>, gcc-help at gcc dot gnu dot org
- Date: Thu, 23 Jun 2011 18:58:04 +0100
- Subject: Re: 4.6.1-RC1: Using LTO in canadian cross
- References: <4E032E98.2010709@gjlay.de> <mcroc1ocu9n.fsf@coign.corp.google.com>
On 23 June 2011 18:49, Ian Lance Taylor wrote:
>> Then I read somewhere that LTO does not work together with -g. Is that
>> still true for 4.6/4.7 or did I ran in some documentation-rot?
>
> I believe that some aspects of -g still do not work correctly with LTO,
> but basic debugging does work. ?I think that some type information is
> not correctly conveyed to the debugger, but you can still print
> variables, structs, etc.
I've encountered one ICE using LTO which was solved by removing -g
from the compilation command. Unfortunately it was in proprietary
code and I wasn't able to reduce it to anything that I could report,
so this a fairly useless anecdote.