http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52678
Bug #: 52678 Summary: internal compiler error: in vect_update_ivs_after_vectorizer, at tree-vect-loop-manip.c:1842 Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: u...@mcs.anl.gov Created attachment 26961 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26961 Fortran sources + Makefile to recreate the ICE I have seen this this problem in the 4.6.x realeases and now also see it in 4.7 and decided it is time to report it given in particular that a similar bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45971 has been closed as fixed. I have: > gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/sandbox/Apps/gcc-4.7.0_inst/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.7.0/configure --prefix=/sandbox/Apps/gcc-4.7.0_inst --with-mpfr=/sandbox/Apps/mpfr-3.0.1_inst --with-gmp=/sandbox/Apps/gmp-5.0.1_inst --with-mpc=/sandbox/Apps/mpc-0.8.2_inst --enable-languages=c,c++,fortran --with-ppl=/sandbox/Apps/ppl-0.11_inst --with-cloog=/sandbox/Apps/cloog-0.16.2_inst --enable-cloog-backend=isl --disable-multilib Thread model: posix gcc version 4.7.0 (GCC) and see the error with: gfortran -fconvert=big-endian -fimplicit-none -fPIC -O3 -funroll-loops -c -ffixed-form ad_input_code_sf.w2f.pre.xb.x2w.w2f.td0043.f90 ad_input_code_sf.w2f.pre.xb.x2w.w2f.td0043.f90: In function ‘openad_set_ref_state’: ad_input_code_sf.w2f.pre.xb.x2w.w2f.td0043.f90:3:0: internal compiler error: in vect_update_ivs_after_vectorizer, at tree-vect-loop-manip.c:1842 Please submit a full bug report, with preprocessed source if appropriate. The file is the product of some source transformation, has > 1700 source lines and is one of over 300 files in the project to be compiled. The reason why I didn't submit it earlier is that given the above it is hard to whittle down the problem to small example. The tar file in the attachment is the minimal set of sources without further trying to reduce the file size. Note that it consists of fixed and free form f90. Because of the module order I included a Makefile that has the order correct and yields the ICE when invoked. Compiling with -O0 removes the ICE. Adding -Wall -Wextra gives some warnings about string truncations and possible value changes in integer assignments none of which I are an actual problem right now even though they should probably be addressed eventually. Adding -fno-strict-aliasing -fwrapv (as suggested on the bugs page) does not make a difference.