[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

Dimitry Andric via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 10 12:17:46 PST 2017

dim added a comment.

Hmm, actually this does not work.  The definition of `_LIBCPP_THREAD_SAFETY_ANNOTATION` I moved from `__mutex_base` to `__config` is only enabled if `_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS` is manually defined.

There must have been some reason to do it like this in `__mutex_base`, but for `__thread_support` we unconditionally need such a macro.  I will try defining them slightly differently in `__thread_support` only instead.


More information about the cfe-commits mailing list