From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A73A0383469A; Sun, 4 Dec 2022 23:24:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A73A0383469A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670196260; bh=YUUVN3PsS+dfpYEhRxrY1005e3RvgtGbjz+Dl1rwdQA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uMACViCmZwqhAV1R0UqvnF4/uykg7pjyMy0FAyg8MLA4MSwfr7zsCuOmIG5xiD7Gf j3UkoUpxsHfo/DD3etaLLKcEWQdbUGjvEPRucczN9EkPcHa7euI/Ls+DmwZJbQhsy3 TTMy5v0oWj2QNP0GzywRCprTgU0bcMSz2fC6yFjE= From: "i at maskray dot me" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/107963] Support __attribute__((disable_sanitizer_instrumentation)) Date: Sun, 04 Dec 2022 23:24:20 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: i at maskray dot me 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=3D107963 --- Comment #3 from Fangrui Song --- GCC doesn't implement -fsanitize=3Dmemory. In the absence of it, __attribute__((disable_sanitizer_instrumentation)) is like __attribute__((no_sanitize("all"))). When -fsanitize=3Dmemory is implemented, the two attribute will be differen= t.=