[waffle] [PATCH 0/4] Support XCode 3.1, which lacks TLS
Chad Versace
chad.versace at linux.intel.com
Thu Jul 11 00:12:42 PDT 2013
This patch series lives on my branch testing/support-for-no-tls at
git://people.freedesktop.org/~chadversary/waffle.git .
It adds code paths in wcore_tinfo.c to support development environments that
don't support thread-local storage. Clang < 3.2, for example, lacks TLS.
Nigel or Jeff, could you please test these patches with XCode 3.1? I currently
don't have a Mac system to test on (but that will soon be fixed). I wouldn't
be surprised if I used some pthread features unsupported on Mac OS.
I tested the series on Linux with Clang 3.3 by running `make check-func`.
I tested once with WAFFLE_HAS_TLS defined and again undefined, to simulate an
environment without TLS. Both runs looked good.
Chad Versace (4):
core: Refactor wcore_tinfo.c
core: Prevent leak at thread exit
core: Support systems without thread-local storage
Revert "cmake: Require that compiler support keyword '__thread'"
CMakeLists.txt | 4 +-
src/waffle/core/wcore_tinfo.c | 98 +++++++++++++++++++++++++++++++++++--------
2 files changed, 83 insertions(+), 19 deletions(-)
--
1.8.3.1
More information about the waffle
mailing list