diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2015-12-02 12:23:01 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2015-12-02 12:30:33 -0500 |
commit | bdc795f49947407b1bc75a61b8da9904889582ee (patch) | |
tree | efb4c18499a91c1d78c1a45bafac33e53022c95d /perl.h | |
parent | 8412ccf9d252c9a7b65f0b779b512ccb932e5baf (diff) | |
download | perl-bdc795f49947407b1bc75a61b8da9904889582ee.tar.gz |
Bump the TSA clang minimum to 3.6 (in Applese 6.1)
Since it looks like the 3.5 (6.0) in OS X 9 didn't recognize the annotations.
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -3065,18 +3065,20 @@ freeing any remaining Perl interpreters. /* clang Thread Safety Analysis/Annotations/Attributes * http://clang.llvm.org/docs/ThreadSafetyAnalysis.html * - * Available since clang 3.5-ish (appeared in 3.4, but shaky). + * Available since clang 3.6-ish (appeared in 3.4, but shaky still in 3.5). * Apple XCode hijacks __clang_major__ and __clang_minor__ - * (6.0 means really clang 3.5), so needs extra hijinks. + * (6.1 means really clang 3.6), so needs extra hijinks + * (could probably also test the contents of __apple_build_version__). */ #if defined(USE_ITHREADS) && defined(I_PTHREAD) && \ defined(__clang__) && \ !defined(SWIG) && \ ((!defined(__apple_build_version__) && \ - ((__clang_major__ == 3 && __clang_minor__ >= 5) || \ + ((__clang_major__ == 3 && __clang_minor__ >= 6) || \ (__clang_major__ >= 4))) || \ (defined(__apple_build_version__) && \ - ((__clang_major__ >= 6)))) + ((__clang_major__ == 6 && __clang_minor__ >= 1) || \ + (__clang_major__ >= 7)))) # define PERL_TSA__(x) __attribute__((x)) # define PERL_TSA_ACTIVE #else |