From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A36D73858C5F; Thu, 9 Feb 2023 14:04:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A36D73858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675951497; bh=x6paJ3QjTQKQOQin8zQnloeR64yZXEvXdQGG+5DD7dQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ekD2esA1kLihe3GFKgZxYcoPE8A/KhFFvlOIb8JOe8RcnO9M/homInp9q367j6aww NKiqwVVqAbVQoLe7o0+KMaDJhiB6CkdPJs+32+A6/4pYv2pQRtzHuGacaNF+KBDtoT nCQWFDUxmq9GnLC+N4T6n6IckG/dt87eWUlxvjTw= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108737] [13 Regression] Apparent miscompile of infinite loop on gcc trunk in cddce2 pass Date: Thu, 09 Feb 2023 14:04:57 +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: needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: short_desc cf_reconfirmed_on bug_status everconfirmed target_milestone keywords component version 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=3D108737 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Apparent miscompile of |[13 Regression] Apparent |infinite loop on gcc trunk |miscompile of infinite loop |in cddce2 pass |on gcc trunk in cddce2 pass Last reconfirmed| |2023-02-09 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Target Milestone|--- |13.0 Keywords| |needs-bisection Component|c++ |tree-optimization Version|unknown |13.0 --- Comment #1 from Richard Biener --- C++ has the forward progress guarantee, in case 'x' is false there's an end= less loop which is undefined behavior. Now, the same happens with C and with -fno-finite-loops, so there's somethi= ng amiss here. -funswitch-loops is necessary, but GCC 12 doesn't seem to be affected ...=