As mentioned in the CP2K PR 29975, current gcc generates and ICE: vondele@pcihopt1:/scratch/vondele/gcc_test/gfortran/test/src> gfortran -Os all.f90 all.f90: In function ‘compute_screening_matrices’: all.f90:305498: internal compiler error: in build2_stat, at tree.c:3074 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. vondele@pcihopt1:/scratch/vondele/gcc_test/gfortran/test/src> gfortran -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /scratch/vondele/gcc_trunk/gcc/configure --prefix=/scratch/vondele/gcc_trunk/build --with-mpfr_include=/scratch/vondele/mpfr-2.2.0/ --with-mpfr_lib=/scratch/vondele/mpfr-2.2.0/ --with-gmp=/users/vondele/ --enable-languages=c,fortran Thread model: posix gcc version 4.3.0 20070622 (experimental) The source can be obtained as explained in comment 112 of PR 29975 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29975#c112
Can you provide a backtrace?
(In reply to comment #1) > Can you provide a backtrace? > 1 compute_screening_matrices Breakpoint 1, internal_error (gmsgid=0xae1dff "in %s, at %s:%d") at /scratch/vondele/gcc_trunk/gcc/gcc/diagnostic.c:596 596 { (gdb) bt #0 internal_error (gmsgid=0xae1dff "in %s, at %s:%d") at /scratch/vondele/gcc_trunk/gcc/gcc/diagnostic.c:596 #1 0x0000000000514a3c in fancy_abort (file=Variable "file" is not available. ) at /scratch/vondele/gcc_trunk/gcc/gcc/diagnostic.c:656 #2 0x00000000007f4818 in build2_stat (code=MULT_EXPR, tt=0x2a95a5c6c0, arg0=0x2ac292cc00, arg1=0x2ab6eca810) at /scratch/vondele/gcc_trunk/gcc/gcc/tree.c:3074 #3 0x0000000000a2fa90 in aff_combination_add_elt (comb=0x7fbfffe9b0, elt=0x2aebf44b40, scale= {low = 8, high = 0}) at /scratch/vondele/gcc_trunk/gcc/gcc/tree-affine.c:175 #4 0x0000000000a2ff26 in aff_combination_add (comb1=0x7fbfffe9b0, comb2=0x7fbfffe7d0) at /scratch/vondele/gcc_trunk/gcc/gcc/tree-affine.c:202 #5 0x0000000000764511 in get_computation_aff (loop=0x2ab16d95a0, use=Variable "use" is not available. ) at /scratch/vondele/gcc_trunk/gcc/gcc/tree-ssa-loop-ivopts.c:2669 #6 0x0000000000765fd3 in rewrite_use_address (data=0x7fbfffedf0, use=0x31199330, cand=0x20bc1650) at /scratch/vondele/gcc_trunk/gcc/gcc/tree-ssa-loop-ivopts.c:5086 #7 0x000000000076687e in rewrite_uses (data=0x7fbfffedf0) at /scratch/vondele/gcc_trunk/gcc/gcc/tree-ssa-loop-ivopts.c:5147 #8 0x0000000000768c93 in tree_ssa_iv_optimize_loop (data=0x7fbfffedf0, loop=Variable "loop" is not availa ble. ) at /scratch/vondele/gcc_trunk/gcc/gcc/tree-ssa-loop-ivopts.c:5346 #9 0x00000000007691c0 in tree_ssa_iv_optimize () at /scratch/vondele/gcc_trunk/gcc/gcc/tree-ssa-loop-ivopts.c:5379 #10 0x0000000000775d7d in tree_ssa_loop_ivopts () at /scratch/vondele/gcc_trunk/gcc/gcc/tree-ssa-loop.c:514 #11 0x000000000062b709 in execute_one_pass (pass=0xd32b80)
Then it's a dup of PR32417. *** This bug has been marked as a duplicate of 32417 ***