public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/71613] Useful warnings silenced when macros from system headers are used
       [not found] <bug-71613-4@http.gcc.gnu.org/bugzilla/>
@ 2024-05-15 14:49 ` tavianator at gmail dot com
  0 siblings, 0 replies; only message in thread
From: tavianator at gmail dot com @ 2024-05-15 14:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71613

Tavian Barnes <tavianator at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tavianator at gmail dot com

--- Comment #11 from Tavian Barnes <tavianator at gmail dot com> ---
Mostly commenting to make this searchable in case someone else runs into it:
-Wtsan is also affected by this:

$ cat foo.c
#include <stdatomic.h>

int main(void) {
        atomic_thread_fence(memory_order_relaxed);
        __atomic_thread_fence(__ATOMIC_RELAXED);
        return 0;
}
$ gcc -c -fsanitize=thread foo.c
foo.c: In function ‘main’:
foo.c:5:9: warning: ‘atomic_thread_fence’ is not supported with
‘-fsanitize=thread’ [-Wtsan]
    5 |         __atomic_thread_fence(__ATOMIC_RELAXED);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-15 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-71613-4@http.gcc.gnu.org/bugzilla/>
2024-05-15 14:49 ` [Bug c/71613] Useful warnings silenced when macros from system headers are used tavianator at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).