From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E50283858C52; Thu, 2 Feb 2023 19:33:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E50283858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675366409; bh=NylgwkIirqnJBACQ4a+2t/fwOJJIpnPSYyFcSa+6GzA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ocHNGlreweMgjWEfKFdUfRSojkz7vXBY/F9HQ48rndFdY1i+AGIDqnytEEnNz/KLY dB08XyYHSzA9fHmg781yIqIVIq3FIoUsAqicN3htWpiNLKmfIpjeG1/kqqQfBX/kh6 t8AobkEB2ZEPv8BTsX+XPkGogDeFQhedgMeUZCSo= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/108637] ASAN at -O2 misses a stack-use-after-scope Date: Thu, 02 Feb 2023 19:33:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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=3D108637 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski --- PRE removes the load/stores from/to *f . Basically the compiler is able to remove the use-after-scope usage with -O2= and above.=