[Bug sanitizer/63559] New: -fsanitize=thread sets no preprocessor flags
rogero at howzatt dot demon.co.uk
gcc-bugzilla@gcc.gnu.org
Thu Oct 16 11:34:00 GMT 2014
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.
More information about the Gcc-bugs
mailing list