From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 01C943857B86; Wed, 31 Aug 2022 07:11:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 01C943857B86 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661929911; bh=EaYVZUJ5UwmufwSRUV2dFhxRbZzg38jnutBMk2ZigjM=; h=From:To:Subject:Date:From; b=WNdXIsCdWrIJbnadxVr+JaaraZHlvD0VJ6EXpBCFzxzBzVNQE8mr6jrzANVTuHxdO dTcZxsbcN2Z6tdEUA9c0TNVnfGQHMpFfw9BuzBb9kz1wKgVtym2dPowOEddDfstXvd 5U3Us7pjSkZpCqteLPe27iUcY8jVJu2sUOcCBjsQ= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106781] New: [13 Regression] ICE: verify_flow_info failed (error: returns_twice call is not first in basic block 2) Date: Wed, 31 Aug 2022 07:11:50 +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-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com 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 keywords 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=3D106781 Bug ID: 106781 Summary: [13 Regression] ICE: verify_flow_info failed (error: returns_twice call is not first in basic block 2) Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc 13.0.0 20220828 snapshot (g:1ae1325f24cea1698b56e4299d95446a1f7b90a2) I= CEs when compiling the following testcase w/ -O2: int n; __attribute__ ((noinline, returns_twice)) static int bar (int) { n /=3D 0; return n; } int foo (int x) { return bar (x); } % gcc-13.0.0 -O2 -w -c dmkrwty8.c dmkrwty8.c: In function 'foo': dmkrwty8.c:12:1: error: returns_twice call is not first in basic block 2 12 | foo (int x) | ^~~ bar.constprop (); during IPA pass: inline dmkrwty8.c:12:1: internal compiler error: verify_flow_info failed 0x9fcb0d verify_flow_info() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/cf= ghooks.cc:284 0xf44614 checking_verify_flow_info =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/cf= ghooks.h:214 0xf44614 cleanup_tree_cfg_noloop =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/tr= ee-cfgcleanup.cc:1156 0xf44614 cleanup_tree_cfg(unsigned int) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/tr= ee-cfgcleanup.cc:1207 0xdfdaf4 execute_function_todo =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/pa= sses.cc:2057 0xdfdf4c execute_todo =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/pa= sses.cc:2145 0xe00970 execute_one_ipa_transform_pass =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/pa= sses.cc:2339 0xe00970 execute_all_ipa_transforms(bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/pa= sses.cc:2399 0xa34d2d cgraph_node::expand() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/cg= raphunit.cc:1827 0xa34d2d cgraph_node::expand() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/cg= raphunit.cc:1787 0xa36304 expand_all_functions =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/cg= raphunit.cc:1998 0xa36304 symbol_table::compile() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/cg= raphunit.cc:2348 0xa38e27 symbol_table::compile() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/cg= raphunit.cc:2261 0xa38e27 symbol_table::finalize_compilation_unit() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220828/work/gcc-13-20220828/gcc/cg= raphunit.cc:2529=