From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B2D6F3858C41; Tue, 16 May 2023 23:45:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2D6F3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684280710; bh=0+LwQcc9sYnsAHQOqnI7lMUKRGqnIxI4y1JPk4COujg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lIdQWmLznNCimYXk9/OqkzS/fq/fAee8X5/MjrbQxjO0n2bi1EH6YkiQu3rlL7SEb MaHzu2iShJlWhxwDvC3bcMe40qahImXEQIbMfb0AY6nfwn9a3WgfK+hRVCvBlfrHt5 BXjbscpKYze8TEWlsleqrcV+iJoXSaNR9x0EMtNc= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/109882] -fsanitize=thread #include transitively includes sanitizer/common_interface_defs.h Date: Tue, 16 May 2023 23:45:10 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW 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: bug_status cf_reconfirmed_on everconfirmed 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=3D109882 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-05-16 Ever confirmed|0 |1 --- Comment #4 from Jonathan Wakely --- The header is included since r13-2677-g0abc63a5ea4550 (and r12-9342-g0cec4e9cd44e25 on the branch), and not including it would mean not being able to annotate atomic>. I agree with Andrew, this is a bug in libsanitizer. The correct way to use __has_feature in a public header is to test with #ifdef __has_feature not to define the fallback definition.=