From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B71BE3858D33; Thu, 2 May 2024 12:52:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B71BE3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714654359; bh=er1SUUMVJXj2kxUrR+HiWsNEE99/dWiW8eO2jSJztEE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IkcAHsJjwseatd81CVScp7VcBK5OnsL813cy3Tin9k8wHrq36GPDblpB3hbHHSIhX on+rTtZXRRcLDC93o7qekOVcgBmtog6JHiHeHlfno70yYwI7VV/qu50E7TuwpTvvgv VAFJi2OQQF1pD+tOs7t5kVbKLzn1Q0nDDByudn7Y= From: "nfxjfg at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/114923] gcc ignores escaping pointer and applies invalid optimization Date: Thu, 02 May 2024 12:52:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nfxjfg at googlemail 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=3D114923 --- Comment #1 from nfxjfg at googlemail dot com --- To make this explicitly clear: I expect that gcc reads back the buf value f= rom memory and returns that.=