From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 11E3D3858C39; Mon, 7 Nov 2022 13:01:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11E3D3858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667826102; bh=IPXtTsZ01XrCxzwt1a24oIDscOQd/YdMdqr4mu5lwu0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p+a4YIu0k25g0RiKBFQoIcdbf11+V7fJ0OxaGgLJrG/dpbqeqVSUDfrZpKu4FCmLi S1GxDAIKhbpG4P8TYFlgS9WFO9eK5cWasVaS2A4Q0/HPpjqTnr2fm4QyKs6yiFzTQh LS0nDc7jlLFEBTKfmB9NQtja9iQ/g1yjZR+o4nXc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107505] [13 Regression] ICE: verify_flow_info failed (error: returns_twice call is not first in basic block 2) Date: Mon, 07 Nov 2022 13:01:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107505 --- Comment #3 from CVS Commits --- The master branch has been updated by Alexander Monakov : https://gcc.gnu.org/g:5d060d8b0477ff4911f41c816281daaa24b41a13 commit r13-3753-g5d060d8b0477ff4911f41c816281daaa24b41a13 Author: Alexander Monakov Date: Mon Nov 7 15:33:01 2022 +0300 tree-ssa-sink: do not touch calls that return twice Avoid moving pure/const calls that may return twice in tree-ssa-sink: properly redirecting the associated abnormal edge is non-trivial. gcc/ChangeLog: PR tree-optimization/107505 * tree-ssa-sink.cc (statement_sink_location): Additionally reject ECF_RETURNS_TWICE calls. gcc/testsuite/ChangeLog: PR tree-optimization/107505 * gcc.dg/pr107505.c: New test.=