From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 915AD383F846; Sat, 31 Oct 2020 12:55:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 915AD383F846 From: "su at cs dot ucdavis.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/97578] ice during IPA pass: inline Date: Sat, 31 Oct 2020 12:55:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: su at cs dot ucdavis.edu X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Oct 2020 12:55:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97578 Zhendong Su changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |su at cs dot ucdavis.edu --- Comment #4 from Zhendong Su --- Another test for the same crash (at -Os and -O2 w/o -g, but not at -O3): [533] % gcctk -O2 -c small.c during IPA pass: inline small.c: In function =E2=80=98e=E2=80=99: small.c:10:3: internal compiler error: Segmentation fault 10 | b(d); | ^~~~ 0xcf71ef crash_signal ../../gcc-trunk/gcc/toplev.c:330 0x825aad function_summary::get(cgraph_node*) ../../gcc-trunk/gcc/symbol-summary.h:212 0x825aad clone_info::get(cgraph_node*) ../../gcc-trunk/gcc/symtab-clones.h:70 0x825aad cgraph_edge::redirect_call_stmt_to_callee(cgraph_edge*) ../../gcc-trunk/gcc/cgraph.c:1495 0xd932bf redirect_all_calls(copy_body_data*, basic_block_def*) ../../gcc-trunk/gcc/tree-inline.c:2963 0xd9697e copy_cfg_body ../../gcc-trunk/gcc/tree-inline.c:3118 0xd9697e copy_body ../../gcc-trunk/gcc/tree-inline.c:3294 0xd99ec0 expand_call_inline ../../gcc-trunk/gcc/tree-inline.c:5084 0xd9beb9 gimple_expand_calls_inline ../../gcc-trunk/gcc/tree-inline.c:5274 0xd9beb9 optimize_inline_calls(tree_node*) ../../gcc-trunk/gcc/tree-inline.c:5447 0xa968fb inline_transform(cgraph_node*) ../../gcc-trunk/gcc/ipa-inline-transform.c:763 0xc00f79 execute_one_ipa_transform_pass ../../gcc-trunk/gcc/passes.c:2240 0xc00f79 execute_all_ipa_transforms(bool) ../../gcc-trunk/gcc/passes.c:2287 0x82dbf5 cgraph_node::expand() ../../gcc-trunk/gcc/cgraphunit.c:1822 0x82f596 expand_all_functions ../../gcc-trunk/gcc/cgraphunit.c:1997 0x82f596 symbol_table::compile() ../../gcc-trunk/gcc/cgraphunit.c:2361 0x832b6f symbol_table::compile() ../../gcc-trunk/gcc/cgraphunit.c:2545 0x832b6f symbol_table::finalize_compilation_unit() ../../gcc-trunk/gcc/cgraphunit.c:2542 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. [534] %=20 [534] % cat small.c int printf (const char *, ...); int a; static void b(int c) { if (c) printf("%d", a); } void e() { int d =3D 0; b(d); }=