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.