https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63559
Bug ID: 63559 Summary: -fsanitize=thread sets no preprocessor flags Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: rogero at howzatt dot demon.co.uk CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org When -fsanitize=address is supplied the builtin __SANITIZE_ADDRESS__ is defined. There does not appear to be an equivalent for -fsanitize=thread, which could be used for conditionally compiling code to avoid tsan reporting false positives.