http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55281
Bug #: 55281 Summary: [4.8 Regression] ICE in build_int_cst_wide, at tree.c:1217 (with Ofast, ok with O3) Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: vincenzo.innoce...@cern.ch Created attachment 28666 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28666 preprocesse real-file code c++ -std=gnu++11 -Ofast -c PhiPattern.ii plugins/PhiPattern.cc: In member function 'virtual int PhiPattern::produce(WhiteBoard&)': plugins/PhiPattern.cc:26:5: internal compiler error: in build_int_cst_wide, at tree.c:1217 int PhiPattern::produce(WhiteBoard & event) { ^ 0xd393ab build_int_cst_wide(tree_node*, unsigned long, long) ../../gcc-trunk/gcc/tree.c:1217 0xd3990e double_int_to_tree(tree_node*, double_int) ../../gcc-trunk/gcc/tree.c:1067 0xd39dea build_int_cst(tree_node*, long) ../../gcc-trunk/gcc/tree.c:1044 0xbefd2b fold_relational_const(tree_code, tree_node*, tree_node*, tree_node*) [clone .437619] ../../gcc-trunk/gcc/fold-const.c:16163 0xb870b9 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) ../../gcc-trunk/gcc/fold-const.c:9801 0xba8eef fold_build2_stat_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) ../../gcc-trunk/gcc/fold-const.c:14676 0xc9f217 fold_binary_op_with_conditional_arg(unsigned int, tree_code, tree_node*, tree_node*, tree_node*, tree_node*, tree_node*, int) [clone .437722] ../../gcc-trunk/gcc/fold-const.c:6011 0xb89fb4 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) ../../gcc-trunk/gcc/fold-const.c:9887 0xa3d04a combine_cond_expr_cond ../../gcc-trunk/gcc/tree-ssa-forwprop.c:367 0xa3d2c4 forward_propagate_into_comparison_1(gimple_statement_d*, tree_code, tree_node*, tree_node*, tree_node*) [clone .1031067] ../../gcc-trunk/gcc/tree-ssa-forwprop.c:414 0x5fccc5 forward_propagate_into_cond ../../gcc-trunk/gcc/tree-ssa-forwprop.c:562 0x5fccc5 ssa_forward_propagate_and_combine ../../gcc-trunk/gcc/tree-ssa-forwprop.c:3012 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. [innocent@vinavx0 Octave]$ c++ -std=gnu++11 -O3 -c PhiPattern.ii [innocent@vinavx0 Octave]$ c++ -v Using built-in specs. COLLECT_GCC=c++ COLLECT_LTO_WRAPPER=/afs/cern.ch/user/i/innocent/w2/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-trunk/configure --prefix=/afs/cern.ch/user/i/innocent/w2 --enable-languages=c,c++,lto,fortran -enable-gold=yes --enable-lto --with-build-config=bootstrap-lto --with-gmp-lib=/usr/local/lib64 --with-mpfr-lib=/usr/local/lib64 -with-mpc-lib=/usr/local/lib64 --enable-cloog-backend=isl --with-cloog=/usr/local --with-ppl-lib=/usr/local/lib64 CFLAGS='-O2 -ftree-vectorize -fPIC' CXXFLAGS='-O2 -fPIC -ftree-vectorize -fvisibility-inlines-hidden -march=native' -enable-libitm -disable-multilib Thread model: posix gcc version 4.8.0 20121112 (experimental) [trunk revision 193427] (GCC) same with bzip2 -d PhiPattern.ii.bz2 pb-d-128-141-131-26:bugs48 innocent$ c++ -std=gnu++11 -O3 -c PhiPattern.ii pb-d-128-141-131-26:bugs48 innocent$ c++ -std=gnu++11 -Ofast -c PhiPattern.ii plugins/PhiPattern.cc: In member function ‘virtual int PhiPattern::produce(WhiteBoard&)’: plugins/PhiPattern.cc:26:5: internal compiler error: in build_int_cst_wide, at tree.c:1217 plugins/PhiPattern.cc:26:5: internal compiler error: Abort trap: 6 c++: internal compiler error: Abort trap: 6 (program cc1plus) Abort trap: 6 pb-d-128-141-131-26:bugs48 innocent$ pb-d-128-141-131-26:bugs48 innocent$ pb-d-128-141-131-26:bugs48 innocent$ c++ -v Using built-in specs. COLLECT_GCC=c++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin12.2.0/4.8.0/lto-wrapper Target: x86_64-apple-darwin12.2.0 Configured with: ./configure --enable-languages=c,c++,fortran --disable-multilib --disable-bootstrap --enable-lto -disable-libitm Thread model: posix gcc version 4.8.0 20121109 (experimental) [trunk revision 193360] (GCC)