http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52969
Bug #: 52969 Summary: ICE in in get_expr_operands, at tree-ssa-operands.c:1035 with -ftree-loop-if-convert-stores Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: vincenzo.innoce...@cern.ch Created attachment 27147 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27147 source code (generated with -E) compiling the attached "real-life" code I get c++ -v -O3 -std=c++0x -ftree-loop-if-convert-stores -c buggy.i Using built-in specs. COLLECT_GCC=c++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/4.7.0/lto-wrapper Target: x86_64-apple-darwin11.3.0 Configured with: ./configure --enable-languages=c,c++,fortran --disable-multilib --disable-bootstrap --enable-lto -disable-libitm Thread model: posix gcc version 4.7.0 20120205 (experimental) (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.3' '-v' '-O3' '-std=c++11' '-ftree-loop-if-convert-stores' '-c' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/4.7.0/cc1plus -fpreprocessed buggy.i -fPIC -quiet -dumpbase buggy.i -mmacosx-version-min=10.7.3 -mtune=core2 -auxbase buggy -O3 -std=c++11 -version -ftree-loop-if-convert-stores -o /var/folders/hd/vml6pgj48xjfkp006s6djxf80000gq/T//ccT2Uqbf.s GNU C++ (GCC) version 4.7.0 20120205 (experimental) (x86_64-apple-darwin11.3.0) compiled by GNU C version 4.7.0 20111201 (experimental), GMP version 4.3.1, MPFR version 2.4.1, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C++ (GCC) version 4.7.0 20120205 (experimental) (x86_64-apple-darwin11.3.0) compiled by GNU C version 4.7.0 20111201 (experimental), GMP version 4.3.1, MPFR version 2.4.1, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 3c7081ac5da07d4d6f6ca789c3e35f66 unhandled expression in get_expr_operands(): <truth_not_expr 0x1050e00a0 type <boolean_type 0x141b1bb28 bool sizes-gimplified public unsigned type_6 QI size <integer_cst 0x141b0cba0 constant 8> unit size <integer_cst 0x141b0cbc0 constant 1> align 8 symtab 0 alias set 14 canonical type 0x141b1bb28 precision 1 min <integer_cst 0x141b0cfa0 0> max <integer_cst 0x141b0cfe0 1> pointer_to_this <pointer_type 0x1013bfe70> reference_to_this <reference_type 0x1013bff18>> arg 0 <lt_expr 0x104f9d900 type <boolean_type 0x141b1bb28 bool> arg 0 <ssa_name 0x105523550 type <real_type 0x141b1be70 float> visited var <var_decl 0x104fb0aa0 maxpix>def_stmt maxpix_135 = MEM[(struct SiStripTemplate *)templ_76(D) + 40B]; version 135> arg 1 <ssa_name 0x105523820 type <real_type 0x141b1be70 float> visited var <var_decl 0x105475b40 D.104278>def_stmt D.104278_144 = qscale_123 * D.104277_143; version 144> SiStripTemplateReco.cc:160:5> SiStripTemplateReco.cc:160:5> SiStripTemplateReco.cc: In function ‘int SiStripTemplateReco::StripTempReco1D(int, float, float, float, std::vector<float>&, SiStripTemplate&, float&, float&, float&, int&, int, float&)’: SiStripTemplateReco.cc:79:5: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:1035 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. pb-d-128-141-131-26:bugs48 innocent$ c++ -v -O3 -std=c++0x -c buggy.i Using built-in specs. COLLECT_GCC=c++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/4.7.0/lto-wrapper Target: x86_64-apple-darwin11.3.0 Configured with: ./configure --enable-languages=c,c++,fortran --disable-multilib --disable-bootstrap --enable-lto -disable-libitm Thread model: posix gcc version 4.7.0 20120205 (experimental) (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.3' '-v' '-O3' '-std=c++11' '-c' '-shared-libgcc' '-mtune=core2' /usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/4.7.0/cc1plus -fpreprocessed buggy.i -fPIC -quiet -dumpbase buggy.i -mmacosx-version-min=10.7.3 -mtune=core2 -auxbase buggy -O3 -std=c++11 -version -o /var/folders/hd/vml6pgj48xjfkp006s6djxf80000gq/T//ccLlzfNR.s GNU C++ (GCC) version 4.7.0 20120205 (experimental) (x86_64-apple-darwin11.3.0) compiled by GNU C version 4.7.0 20111201 (experimental), GMP version 4.3.1, MPFR version 2.4.1, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C++ (GCC) version 4.7.0 20120205 (experimental) (x86_64-apple-darwin11.3.0) compiled by GNU C version 4.7.0 20111201 (experimental), GMP version 4.3.1, MPFR version 2.4.1, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 3c7081ac5da07d4d6f6ca789c3e35f66 COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.3' '-v' '-O3' '-std=c++11' '-c' '-shared-libgcc' '-mtune=core2' as -arch x86_64 -force_cpusubtype_ALL -o buggy.o /var/folders/hd/vml6pgj48xjfkp006s6djxf80000gq/T//ccLlzfNR.s COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/4.7.0/:/usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/4.7.0/:/usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/:/usr/local/lib/gcc/x86_64-apple-darwin11.3.0/4.7.0/:/usr/local/lib/gcc/x86_64-apple-darwin11.3.0/ LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin11.3.0/4.7.0/:/usr/local/lib/gcc/x86_64-apple-darwin11.3.0/4.7.0/../../../:/usr/lib/ COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.3' '-v' '-O3' '-std=c++11' '-c' '-shared-libgcc' '-mtune=core2' same on linux with 4.7.0 c++ -O3 -std=c++0x -ftree-loop-if-convert-stores -c buggy.i -v Using built-in specs. COLLECT_GCC=/afs/cern.ch/cms/slc5_amd64_gcc470/external/gcc/4.7.0/bin/c++ Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/build/da/build-BOOTSTRAP_slc5_amd64_gcc470/b/tmp/BUILDROOT/de8f21fa6a50f532872e71e7ff72a173/opt/cmssw/slc5_amd64_gcc470/external/gcc/4.7.0 --disable-multilib --disable-nls --enable-languages=c,c++,fortran --enable-gold=yes --enable-lto --with-gmp=/build/da/build-BOOTSTRAP_slc5_amd64_gcc470/b/tmp/BUILDROOT/de8f21fa6a50f532872e71e7ff72a173/opt/cmssw/slc5_amd64_gcc470/external/gcc/4.7.0 --with-mpfr=/build/da/build-BOOTSTRAP_slc5_amd64_gcc470/b/tmp/BUILDROOT/de8f21fa6a50f532872e71e7ff72a173/opt/cmssw/slc5_amd64_gcc470/external/gcc/4.7.0 --with-mpc=/build/da/build-BOOTSTRAP_slc5_amd64_gcc470/b/tmp/BUILDROOT/de8f21fa6a50f532872e71e7ff72a173/opt/cmssw/slc5_amd64_gcc470/external/gcc/4.7.0 --with-ppl=/build/da/build-BOOTSTRAP_slc5_amd64_gcc470/b/tmp/BUILDROOT/de8f21fa6a50f532872e71e7ff72a173/opt/cmssw/slc5_amd64_gcc470/external/gcc/4.7.0 --with-cloog=/build/da/build-BOOTSTRAP_slc5_amd64_gcc470/b/tmp/BUILDROOT/de8f21fa6a50f532872e71e7ff72a173/opt/cmssw/slc5_amd64_gcc470/external/gcc/4.7.0 --enable-cloog-backend=isl --enable-shared CC='gcc -fPIC' CXX='c++ -fPIC' CPP=cpp CXXCPP='c++ -E' Thread model: posix gcc version 4.7.0 20120302 (prerelease) (GCC) COLLECT_GCC_OPTIONS='-O3' '-std=c++11' '-ftree-loop-if-convert-stores' '-c' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /afs/cern.ch/cms/slc5_amd64_gcc470/external/gcc/4.7.0/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/cc1plus -fpreprocessed buggy.i -quiet -dumpbase buggy.i -mtune=generic -march=x86-64 -auxbase buggy -O3 -std=c++11 -version -ftree-loop-if-convert-stores -o /tmp/innocent/ccEsHv8G.s GNU C++ (GCC) version 4.7.0 20120302 (prerelease) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.7.0 20120302 (prerelease), GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C++ (GCC) version 4.7.0 20120302 (prerelease) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.7.0 20120302 (prerelease), GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 69c1686c229166b95e41aad94dc9fb81 SiStripTemplateReco.cc: In function 'int SiStripTemplateReco::StripTempReco1D(int, float, float, float, std::vector<float>&, SiStripTemplate&, float&, float&, float&, int&, int, float&)': SiStripTemplateReco.cc:79:5: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:1035 Please submit a full bug report, with preprocessed source if appropriate.