From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25030 invoked by alias); 16 Apr 2014 22:16:34 -0000 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 Received: (qmail 25001 invoked by uid 48); 16 Apr 2014 22:16:30 -0000 From: "harald at gigawatt dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60869] New: ICE on throw after invalid definition of __cxa_throw Date: Wed, 16 Apr 2014 22:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: harald at gigawatt dot nl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg01237.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60869 Bug ID: 60869 Summary: ICE on throw after invalid definition of __cxa_throw Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl typedef void __cxa_throw(void *, void *, void (*) (void *)); void f() { throw 1; } gives unhandled expression in get_expr_operands(): > QI size unit size align 8 symtab 0 alias set -1 canonical type 0x7f9eadd53c78 arg-types chain chain chain >>>> pointer_to_this > VOID file test2.cc line 1 col 14 align 1 context result QI size unit size align 8 symtab 0 alias set -1 canonical type 0x7f9eadd53c78 arg-typ= es pointer_to_this > chain > test2.cc: In function =E2=80=98void f()=E2=80=99: test2.cc:2:21: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:902 void f() { throw 1; } ^ 0xcc445c get_expr_operands ../../gcc/gcc/tree-ssa-operands.c:902 0xcc4cd1 parse_ssa_operands ../../gcc/gcc/tree-ssa-operands.c:951 0xcc620a build_ssa_operands ../../gcc/gcc/tree-ssa-operands.c:966 0xcc620a update_stmt_operands(function*, gimple_statement_base*) ../../gcc/gcc/tree-ssa-operands.c:1103 0xbf75e8 update_stmt ../../gcc/gcc/gimple-ssa.h:144 0xbf75e8 mark_def_sites ../../gcc/gcc/tree-into-ssa.c:675 0xbf75e8 mark_def_dom_walker::before_dom_children(basic_block_def*) ../../gcc/gcc/tree-into-ssa.c:2253 0x1044937 dom_walker::walk(basic_block_def*) ../../gcc/gcc/domwalk.c:177 0xbf6191 rewrite_into_ssa ../../gcc/gcc/tree-into-ssa.c:2331 0xbf6191 execute ../../gcc/gcc/tree-into-ssa.c:2403 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Sort of expected, this ICEs on every version of GCC I can test right now (release versions of 4.1.2 to 4.8.2, and 4.9 as of about a month ago) >>From gcc-bugs-return-449218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Apr 16 22:24:55 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2506 invoked by alias); 16 Apr 2014 22:24:55 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2472 invoked by uid 48); 16 Apr 2014 22:24:51 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/60868] [4.9/4.10 Regression] ICE: in int_mode_for_mode, at stor-layout.c:400 with -minline-all-stringops -minline-stringops-dynamically -march=core2 Date: Wed, 16 Apr 2014 22:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg01238.txt.bz2 Content-length: 799 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60868 --- Comment #1 from H.J. Lu --- This works: diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 536f50f..7a68623 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -24392,7 +24392,8 @@ ix86_expand_set_or_movmem (rtx dst, rtx src, rtx count_exp, rtx val_exp, if (jump_around_label == NULL_RTX) jump_around_label = gen_label_rtx (); emit_cmp_and_jump_insns (count_exp, GEN_INT (dynamic_check - 1), - LEU, 0, GET_MODE (count_exp), 1, hot_label); + LEU, 0, counter_mode (count_exp), + 1, hot_label); predict_jump (REG_BR_PROB_BASE * 90 / 100); if (issetmem) set_storage_via_libcall (dst, count_exp, val_exp, false);