This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/50338] ICE Linking with -flto
- From: "James.W.Mckelvey at jpl dot nasa.gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Sep 2011 14:58:34 +0000
- Subject: [Bug lto/50338] ICE Linking with -flto
- Auto-submitted: auto-generated
- References: <bug-50338-4@http.gcc.gnu.org/bugzilla/>
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.