From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AB611383666C; Sun, 4 Dec 2022 23:05:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB611383666C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670195121; bh=dP8x1Bsk3LuAygI+frEiEqk3ZFgPNkYW3EcPPdXEzzg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jHuhCbJmNnKIAgIfCgx+NbneOW4Ys4vcRfkCh68CYV0YZbcKR3YmG+Pg/RwGG/yer 9bE/8NuMP2nhqXHp5JPGcc2bwDwByHNPWyLWstuv2G5avr3umQqQFfKrJzGX+i9Z1c E1ftWZjueozlmDuVEvbjL9ZtP43nBtpC2hHSOaZc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBzYW5pdGl6ZXIvNzgyMDRdIOKAmG5vX3Nhbml0aXpl4oCZ?= =?UTF-8?B?IGF0dHJpYnV0ZSBkaXJlY3RpdmUgaWdub3JlZCBbLVdhdHRyaWJ1dGVzXQ==?= Date: Sun, 04 Dec 2022 23:05:21 +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: 6.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 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=3D78204 --- Comment #9 from Andrew Pinski --- (In reply to Fangrui Song from comment #8) > Note: Clang supports > __attribute__((no_sanitize("address","undefined"))) > but not > __attribute__((no_sanitize("address,undefined"))) >=20 > Possibly reject `__attribute__((no_sanitize("address,undefined")))` as we= ll > to prevent users from writing non-portable code. We document both ways already.=20 https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Common-Function-Attributes.ht= ml#index-no_005fsanitize-function-attribute I would have said if we don't document both ways we should reject it but si= nce it is documented already, maybe add to the documentation that clang does not accept the combined string way.=