The polyhedron 2005 benchmark induct.f90 ICEs the gfortran compiler in current
gcc trunk when compiled with -ffast-math -O2 -fgraphite-identity...

gfortran -ffast-math -O2 -fgraphite-identity induct.f90 -o induct
induct.f90: In function ‘__mcc_m_MOD_mutual_ind_cir_cir_coils’:
induct.f90:777:0: internal compiler error: Segmentation fault

A backtrace shows...

(gdb) r induct.f90 -fPIC -quiet -dumpbase induct.f90
-mmacosx-version-min=10.6.2 -mtune=generic -auxbase induct -O2 -version
-ffast-math -fgraphite-identity -fintrinsic-modules-path
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.2.0/4.5.0/finclude -o
/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//cczMDWLV.s
Starting program:
/sw/lib/gcc4.5/libexec/gcc/x86_64-apple-darwin10.2.0/4.5.0/f951 induct.f90
-fPIC -quiet -dumpbase induct.f90 -mmacosx-version-min=10.6.2 -mtune=generic
-auxbase induct -O2 -version -ffast-math -fgraphite-identity
-fintrinsic-modules-path
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.2.0/4.5.0/finclude -o
/var/folders/1C/1CdoNxmNFHyOIjNBLNuJh++++TM/-Tmp-//cczMDWLV.s
Reading symbols for shared libraries .++++++++++++..... done
GNU Fortran (GCC) version 4.5.0 20091125 (experimental)
(x86_64-apple-darwin10.2.0)
        compiled by GNU C version 4.5.0 20091125 (experimental), GMP version
4.3.1, MPFR version 2.4.1, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Fortran (GCC) version 4.5.0 20091125 (experimental)
(x86_64-apple-darwin10.2.0)
        compiled by GNU C version 4.5.0 20091125 (experimental), GMP version
4.3.1, MPFR version 2.4.1, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x000000010053b1e2 in rewrite_commutative_reductions_out_of_ssa_loop
(loop=<value temporarily unavailable, due to optimizations>, reductions=<value
temporarily unavailable, due to optimizations>) at
../../gcc-4.5-20091125/gcc/graphite-sese-to-poly.c:2474
2474      e = split_block (bb, gsi_stmt (gsi));
(gdb) bt
#0  0x000000010053b1e2 in rewrite_commutative_reductions_out_of_ssa_loop
(loop=<value temporarily unavailable, due to optimizations>, reductions=<value
temporarily unavailable, due to optimizations>) at
../../gcc-4.5-20091125/gcc/graphite-sese-to-poly.c:2474
#1  0x0000000100543205 in build_poly_scop (scop=<value temporarily unavailable,
due to optimizations>) at
../../gcc-4.5-20091125/gcc/graphite-sese-to-poly.c:2819
#2  0x000000010051ec3f in graphite_transform_loops () at
../../gcc-4.5-20091125/gcc/graphite.c:273
#3  0x00000001007c185a in graphite_transforms () at
../../gcc-4.5-20091125/gcc/tree-ssa-loop.c:300
#4  0x0000000100601681 in execute_one_pass (pass=0x100c68660) at
../../gcc-4.5-20091125/gcc/passes.c:1522
#5  0x000000010060197d in execute_pass_list (pass=0x100c68660) at
../../gcc-4.5-20091125/gcc/passes.c:1577
#6  0x000000010060198f in execute_pass_list (pass=0x100c683c0) at
../../gcc-4.5-20091125/gcc/passes.c:1578
#7  0x000000010060198f in execute_pass_list (pass=0x100c67a00) at
../../gcc-4.5-20091125/gcc/passes.c:1578
#8  0x00000001007332a4 in tree_rest_of_compilation (fndecl=0x141f0fd00) at
../../gcc-4.5-20091125/gcc/tree-optimize.c:411
#9  0x00000001008eb9cb in cgraph_expand_function (node=0x141d0aee0) at
../../gcc-4.5-20091125/gcc/cgraphunit.c:1178
#10 0x00000001008edaca in cgraph_optimize () at
../../gcc-4.5-20091125/gcc/cgraphunit.c:1245
#11 0x00000001008ee0df in cgraph_finalize_compilation_unit () at
../../gcc-4.5-20091125/gcc/cgraphunit.c:1107
#12 0x0000000100595a26 in write_global_declarations () at
../../gcc-4.5-20091125/gcc/langhooks.c:309
#13 0x00000001006c8772 in toplev_main (argc=18, argv=0x7fff5fbfd8b8) at
../../gcc-4.5-20091125/gcc/toplev.c:1061
#14 0x0000000100001854 in start ()

Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/sw/lib/gcc4.5/libexec/gcc/x86_64-apple-darwin10.2.0/4.5.0/lto-wrapper
Target: x86_64-apple-darwin10.2.0
Configured with: ../gcc-4.5-20091125/configure --prefix=/sw
--prefix=/sw/lib/gcc4.5 --mandir=/sw/share/man --infodir=/sw/share/info
--enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw
--with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--disable-libjava-multilib
Thread model: posix
gcc version 4.5.0 20091125 (experimental) (GCC)


-- 
           Summary: compiling induct.f90 with  -ffast-math -O2 -fgraphite-
                    identity ICEs gfortran
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


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

Reply via email to