From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8846C3857828; Fri, 28 Oct 2022 02:59:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8846C3857828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666925962; bh=GiyeaQkTaUgAgnhKLOFh7VGmwkQx133Q/cYsIkuvTFU=; h=From:To:Subject:Date:From; b=Azwvnz9C2A0ZGyBhYL9LGkdjkHouSKjDIEpF/rYD5+UAcTaOBDx5cvLie5vRMm+CZ zVGb582OObohv8oZju/B/LAJ2s5hgdkuepiuLNV1fvhHNAHV15sAoJJaEePZv6kUOK pLR0L7tj1zStCOhiC0CkUhbWNrWFk5KcF5upaq4M= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107447] New: [13 Regression] ICE: verify_flow_info failed (error: returns_twice call is not first in basic block 2) Date: Fri, 28 Oct 2022 02:59:21 +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=3D107447 Bug ID: 107447 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 20221023 snapshot (g:0e37fd4dc74c1db99cdc7d71ef378e1221253c6f) I= CEs when compiling the following testcase w/ -O2: int n; void bar (int, int); __attribute__ ((noinline, returns_twice)) int zero (void) { return 0; } void foo (void) { (void) zero (); n =3D 0; for (;;) bar (zero (), n); } % gcc-13 -O2 -c ozyot3yy.c ozyot3yy.c: In function 'foo': ozyot3yy.c:13:1: error: returns_twice call is not first in basic block 2 13 | foo (void) | ^~~ _7 =3D zero (); during GIMPLE pass: lim ozyot3yy.c:13:1: internal compiler error: verify_flow_info failed 0xa0dd1d verify_flow_info() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221023/work/gcc-13-20221023/gcc/cf= ghooks.cc:284 0xe08403 execute_function_todo =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221023/work/gcc-13-20221023/gcc/pa= sses.cc:2103 0xe0891e execute_todo =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221023/work/gcc-13-20221023/gcc/pa= sses.cc:2145=