From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 982103858D33; Thu, 19 Oct 2023 16:32:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 982103858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697733168; bh=cpQyCqu1I5Zd/FvYq19JTgFyTPZ7iuvG3FxrKQKuJik=; h=From:To:Subject:Date:From; b=AaVIDyaXAZ7xxYqp1p9NZDBE6pqv4uao4o/O6BNaw52Y3TNHWPF/guDEbfDjSrPJV /vA3vLfCELdwIdweWEscfu8B3YAn26gpBh9swTCq/CBHWDcV4AVVzUva1HVCj5pujR DeeSF8DXGxiDhHllhK9nIrO6X2jFTDvZpzsq5nZA= From: "141242068 at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111882] New: GCC: 14: internal compiler error: in get_expr_operands, at tree-ssa-operands.cc:940 Date: Thu, 19 Oct 2023 16:32:47 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 141242068 at smail dot nju.edu.cn X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 target_milestone 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111882 Bug ID: 111882 Summary: GCC: 14: internal compiler error: in get_expr_operands, at tree-ssa-operands.cc:940 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- Compiler Explorer: https://gcc.godbolt.org/z/h9MMnxbvK When compile this program with option -O2, gcc crashes: ``` static void __attribute__((noipa)) f(int n) { int i, j; struct S { char d[n]; int a; int b : 17; int c : 12; }; struct S A[100][1111]; for (i =3D 0; i < 100; i++) { asm volatile("" : : "g"(&A[0][0]) : "memory"); for (j =3D 0; j < 1111; j++) A[i][j].b =3D 2; } } void g(void) { f(1); } ``` The stack dump: ``` unhandled expression in get_expr_operands(): unit-size align:32 warn_if_not_align:0 symtab:-167332928 alias-set 3 canonical-type 0x7fe6f5ea55e8 precision:32 min max pointer_to_this > side-effects public arg:0 used ignored SI :3:10 size unit-size align:32 warn_if_not_align:0 context >> during GIMPLE pass: ifcvt : In function 'f': :1:36: internal compiler error: in get_expr_operands, at tree-ssa-operands.cc:940 1 | static void __attribute__((noipa)) f(int n) { | ^ 0x231788e internal_error(char const*, ...) ???:0 0xa0002a fancy_abort(char const*, int, char const*) ???:0 0x12e792d operands_scanner::get_expr_operands(tree_node**, int) ???:0 0x12e71b8 operands_scanner::get_expr_operands(tree_node**, int) ???:0 0x12e71b8 operands_scanner::get_expr_operands(tree_node**, int) ???:0 0x12e71b8 operands_scanner::get_expr_operands(tree_node**, int) ???:0 0x12e7e50 operands_scanner::parse_ssa_operands() ???:0 0x12e8cfa operands_scanner::build_ssa_operands() ???:0 0x12e8f44 update_stmt_operands(function*, gimple*) ???:0 0xd66fec gsi_insert_before(gimple_stmt_iterator*, gimple*, gsi_iterator_upd= ate) ???:0 0x1196551 tree_if_conversion(loop*, vec*) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ```=