https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69188

            Bug ID: 69188
           Summary: ICE when linking objects at different optimization
                    levels with LTO and profile generation enabled.
           Product: gcc
           Version: 5.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anthonyfk at gmail dot com
  Target Milestone: ---

Created attachment 37257
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37257&action=edit
Log of link step with -v.

Running the given "compile" script on these reduced sources gives the
following:

$ ./compile 
lto1: internal compiler error: in lto_varpool_replace_node, at
lto/lto-symtab.c:143
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: fatal error: /usr/local/solido/tools/20160101/bin/gfortran
returned 1 exit status
compilation terminated.
/usr/local/solido/tools/20160101/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status

This is with a custom built gcc-5.3.0. I've also tried with the gcc-5-20160105
snapshot and the same thing occurs. I'm using binutils 2.25.1.

Found while compiling lapack-3.4.2 for our build environment; tried reducing as
much as possible. "-save-temps" just resulted in .s files; I'm guessing the
.f's will be more useful.

Reply via email to