public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "harald at gigawatt dot nl" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-60869-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60869 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(): <type_decl 0x7f9eadd508a0 __cxa_throw type <function_type 0x7f9eadd53d20 __cxa_throw type <void_type 0x7f9eadb9c000 void VOID align 8 symtab 0 alias set -1 canonical type 0x7f9eadb9c000 pointer_to_this <pointer_type 0x7f9eadb9c0a8>> QI size <integer_cst 0x7f9eadb8b280 constant 8> unit size <integer_cst 0x7f9eadb8b2a0 constant 1> align 8 symtab 0 alias set -1 canonical type 0x7f9eadd53c78 arg-types <tree_list 0x7f9eadd63050 value <pointer_type 0x7f9eadb9c0a8> chain <tree_list 0x7f9eadd63078 value <pointer_type 0x7f9eadb9c0a8> chain <tree_list 0x7f9eadd630a0 value <pointer_type 0x7f9eadbaa498> chain <tree_list 0x7f9eadb87b18 value <void_type 0x7f9eadb9c000 void>>>>> pointer_to_this <pointer_type 0x7f9eadd65498>> VOID file test2.cc line 1 col 14 align 1 context <translation_unit_decl 0x7f9eadb93170 D.1> result <function_type 0x7f9eadd53c78 type <void_type 0x7f9eadb9c000 void> QI size <integer_cst 0x7f9eadb8b280 8> unit size <integer_cst 0x7f9eadb8b2a0 1> align 8 symtab 0 alias set -1 canonical type 0x7f9eadd53c78 arg-types <tree_list 0x7f9eadd63050> pointer_to_this <pointer_type 0x7f9eadd65540>> chain <function_decl 0x7f9eadd4e600 __cxa_call_unexpected>> test2.cc: In function ‘void f()’: 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 <http://gcc.gnu.org/bugs.html> 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: <gcc-bugs-return-449218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> 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: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> 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" <gcc-bugzilla@gcc.gnu.org> 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: <bug-60868-4-WRMhD8IwLr@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-60868-4@http.gcc.gnu.org/bugzilla/> References: <bug-60868-4@http.gcc.gnu.org/bugzilla/> 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`868 --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- 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);
next reply other threads:[~2014-04-16 22:16 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-04-16 22:16 harald at gigawatt dot nl [this message] 2014-04-16 22:51 ` [Bug c++/60869] " redi at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-60869-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).