http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50394

--- Comment #17 from Jan Hubicka <hubicka at ucw dot cz> 2011-09-20 22:19:38 
UTC ---
> I haven't found out exactly what libs are affected yet, because I've copied
> them in large chunks.

Hmm, this is quite weird. I am not aware of any really important LTO related
wrong code issues (and in general my experience is that LTO tends to ICE or
produce missing symbols, not really produce wrong code that often).
So my bet would be that libreoffice uses some tricks that breaks with LTO and
we will need to idenitfy which one.

If you could look into it, perhaps it would be interesting to identify smallest
library that misoptimize and see what is happening with it.

One common cause of problems is that -flto confuse the configure scripts.
Some of configure tests are written in a way so LTO optimize the interesting
part away and the test always pass. This usually leads to some link/parse
errors
but it also might break other things. Since you have both lto and non-lto
builds,
you could compare the config caches and see if they match?

Thanks!
Honza

Reply via email to