From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F09DD3858D39; Wed, 8 Feb 2023 12:22:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F09DD3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675858933; bh=GOTafxLEKpY1sDIi3CiSQtXMB8iSx4+AFE/x+95Wbz8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iBefSjZSFYXsXb/Fl492zYKqTRGw2/wwbYGXmJnL117EsKTYBD6nCyf3a3Ax3IY/T QGgl+IpmJ6yS1nD8o3M0asoz4v/B/rypotNVRTockXv5raOOiaZKyuf4ztZAD2oDWw Tp63Hx7puy8XSsKQm2UfgN0kex6Ko1HIuyVoJz3s= From: "daniel at eyoman dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108715] Infinite loop in the generated assembly with -Os when strlen is defined in the code Date: Wed, 08 Feb 2023 12:22:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel at eyoman 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: 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=3D108715 --- Comment #11 from Daniel Zaoui --- I checked on GCC 5.2.0 and 10.2 (RISC-V toolchain) and it doesn't happen. I didn't understand what is the conclusion for the duplicate tickets. In 107415, it seems to be an expected behavior. Although I don't see how strlen invoking strlen is a correct behavior. Isn't there supposed to be a fix in GCC for that? Thanks=