From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22710 invoked by alias); 12 Nov 2012 10:06:45 -0000 Received: (qmail 22637 invoked by uid 48); 12 Nov 2012 10:06:29 -0000 From: "vincenzo.innocente at cern dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55281] New: [4.8 Regression] ICE in build_int_cst_wide, at tree.c:1217 (with Ofast, ok with O3) Date: Mon, 12 Nov 2012 10:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincenzo.innocente at cern dot ch X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg00995.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55281 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: unassigned@gcc.gnu.org ReportedBy: vincenzo.innocente@cern.ch Created attachment 28666 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D28666 preprocesse real-file code c++ -std=3Dgnu++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_nod= e*, 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 for instructions. [innocent@vinavx0 Octave]$ c++ -std=3Dgnu++11 -O3 -c PhiPattern.ii [innocent@vinavx0 Octave]$ c++ -v Using built-in specs. COLLECT_GCC=3Dc++ COLLECT_LTO_WRAPPER=3D/afs/cern.ch/user/i/innocent/w2/libexec/gcc/x86_64-un= known-linux-gnu/4.8.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-trunk/configure --prefix=3D/afs/cern.ch/user/i/innocent/w2 --enable-languages=3Dc,c++,lto,f= ortran -enable-gold=3Dyes --enable-lto --with-build-config=3Dbootstrap-lto --with-gmp-lib=3D/usr/local/lib64 --with-mpfr-lib=3D/usr/local/lib64 -with-mpc-lib=3D/usr/local/lib64 --enable-cloog-backend=3Disl --with-cloog=3D/usr/local --with-ppl-lib=3D/usr/local/lib64 CFLAGS=3D'-O2 -ftree-vectorize -fPIC' CXXFLAGS=3D'-O2 -fPIC -ftree-vectorize -fvisibility-inlines-hidden -march=3Dnative' -enable-libitm -disable-multil= ib Thread model: posix gcc version 4.8.0 20121112 (experimental) [trunk revision 193427] (GCC)=20 same with bzip2 -d PhiPattern.ii.bz2=20 pb-d-128-141-131-26:bugs48 innocent$ c++ -std=3Dgnu++11 -O3 -c PhiPattern.ii pb-d-128-141-131-26:bugs48 innocent$ c++ -std=3Dgnu++11 -Ofast -c PhiPatter= n.ii plugins/PhiPattern.cc: In member function =E2=80=98virtual int PhiPattern::produce(WhiteBoard&)=E2=80=99: 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$=20 pb-d-128-141-131-26:bugs48 innocent$=20 pb-d-128-141-131-26:bugs48 innocent$ c++ -v Using built-in specs. COLLECT_GCC=3Dc++ COLLECT_LTO_WRAPPER=3D/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=3Dc,c++,fortran --disable-multilib --disable-bootstrap --enable-lto -disable-libitm Thread model: posix gcc version 4.8.0 20121109 (experimental) [trunk revision 193360] (GCC)