http://llvm.org/bugs/show_bug.cgi?id=17066

            Bug ID: 17066
           Summary: [TSan] Automatically define the libstdc++ macros for
                    annotating happens before and after
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Currently, TSan is very hard to use with a generic libstdc++. The reason is
that the _GLIBCXX_SYNCHRONIZATION_HAPPENS_{BEFORE,AFTER} macros are not defined
and thus the annotations in the library are not available to the race detector.

When using '-fsanitize=thread', Clang should directly provide definitions for
these standard library macros that enable appropriate annotations for TSan.

See http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug.html#debug.races for
the documentation of these macros.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to