gcc-4.3.0's gfortran fail to compile cernlib-2006 with this message.
gcc-4.1.3's one can compile without failure.

gfortran -g -c -O2 -g -mieee -fno-range-check -fno-automatic
-fno-second-underscore   
-I/builddir/build/BUILD/cernlib-2006/2006/build/geant321
-I/builddir/build/BUILD/cernlib-2006/2006/src/geant321
-I/builddir/build/BUILD/cernlib-2006/2006/src/geant321/ggeom
-I/builddir/build/BUILD/cernlib-2006/2006/src/include  -DCERNLIB_LINUX
-DCERNLIB_UNIX -DCERNLIB_LNX                                 -DCERNLIB_QMGLIBC 
                                 -DCERNLIB_GFORTRAN -DCERNLIB_BLDLIB  -o
archive/gnext.o
/builddir/build/BUILD/cernlib-2006/2006/src/geant321/ggeom/gnext.F
/builddir/build/BUILD/cernlib-2006/2006/src/geant321/ggeom/gnext.F: In function
'gnext':
/builddir/build/BUILD/cernlib-2006/2006/src/geant321/ggeom/gnext.F:876: error:
unrecognizable insn:
(insn 10204 7670 6894 605
/builddir/build/BUILD/cernlib-2006/2006/src/geant321/ggeom/gnext.F:774
(parallel [
            (set (reg:SF 150 fpul)
                (const_double:SF 1.0e+10 [0x0.9502f9p+34]))
            (clobber (reg:SI 0 r0))
        ]) -1 (nil))
/builddir/build/BUILD/cernlib-2006/2006/src/geant321/ggeom/gnext.F:876:
internal compiler error: in extract_insn, at recog.c:1990
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

* It doesn't generate preprosessed file with "-save-temps" option. 
* Acording to PR target/36684, I can compile with "-fno-schedule-insns" option.
But I think this doesn't match -fPIC -O2 case and there will be another cause.

# /usr/bin/gfortran -v
Using built-in specs.
Target: sh4-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions
--enable-languages=c,c++,objc,obj-c++,java,fortran --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--build=sh4-redhat-linux
Thread model: posix
gcc version 4.3.0 20080404 (Red Hat 4.3.0-6.fs1.1) (GCC)


-- 
           Summary: gfortran unrecognizable insn
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: masaki dot chikama at gmail dot com
 GCC build triplet: sh4-redhat-linux
GCC target triplet: sh-*-linux


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

Reply via email to