[LLVMbugs] [Bug 17066] New: [TSan] Automatically define the libstdc++ macros for annotating happens before and after

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 2 15:49:03 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: chandlerc at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130902/87c4c72e/attachment.html>


More information about the llvm-bugs mailing list