From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EA60C3851C0A; Tue, 19 May 2020 13:26:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA60C3851C0A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589894796; bh=9XBDWFq7AMDf1xlKSOgIOs+u9AfoT6dY4kTALvSRLCw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cIYBp5fHrALCJDR7P02P8aLVJ1uOWCqd2cVmjOT5Vx5wtpvBjqbRCiOuPnnhkJ9mf bNMxVKNmjac/dpiJ67sNhmDUjuKiQk7cknIveLQrTgl8N2IQHnilhzpqkEVBuWD42Y Kvr9Q/6mxOykPvb2SEyC9nxpE4pqBssotxYY2Ovg= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/94910] detect_stack_use_after_return=1 is much slower than clang's Date: Tue, 19 May 2020 13:26:36 +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: 9.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2020 13:26:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94910 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot g= nu.org --- Comment #7 from Martin Li=C5=A1ka --- I was able to reproduce that on tramp3d as well. I bet the problem is that = the inline expansion does not clear: **SavedFlagPtr(FakeStack) =3D 0 as LLVM does: https://github.com/llvm/llvm-project/blob/master/llvm/lib/Transforms/Instru= mentation/AddressSanitizer.cpp#L3279-L3292 Let me take a look.=