http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50338
--- Comment #6 from James McKelvey <James.W.Mckelvey at jpl dot nasa.gov> 2011-09-12 14:58:34 UTC --- (In reply to comment #4) > > All the source in my project's library is built with -flto. > > > > This same basic code worked with LTO before, shortly after LTO > > first came out. This is the first time I've tried it on a 64-bit OS. > > as a workaround, you could probably use -flto-partition=none. If whole > project > is build with LTO, you need to figure out what files are needed to reproduce > the problem. Or if it is easy for you to build patched GCC, I can provide you > patch with some extra sanity checks, so we can work out what happens. Adding -flto-partition=none makes it work.