The attached bzip2'd tar file unpacks into a directory pgb2as-lto.

To build, change to that directory, then do:

$ for f in *.f *.c; do gfortran -c -g -O3 -flto $f; done
$ rm pgb2as.o
$ ar rv lib.a *.o
$ ranlib lib.a
$ gfortran -g -O3 -flto pgb2as.f lib.a

This results in:

In function 'pgb2as':
lto1: internal compiler error: in gimple_call_fndecl, at gimple.h:1960
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /usr/snp/bin/gfortran returned 1 exit status
collect2: lto-wrapper returned 1 exit status

Removing the -g option in the above sequence of commands makes it work.


-- 
           Summary: ICE with -g -O3, no ICE without -g
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: toon at moene dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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

Reply via email to