summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-27 09:15:32 +0100
committerwm4 <wm4@nowhere>2017-01-27 09:15:32 +0100
commitc3205d294e519f994829d9355eb133670729aab4 (patch)
tree4d45fd4707338c836e9c6c74768e1b8e0234d562 /wscript
parent70411f2709ed792df2fc66cd428e8253abfdc390 (diff)
downloadmpv-c3205d294e519f994829d9355eb133670729aab4.tar.bz2
mpv-c3205d294e519f994829d9355eb133670729aab4.tar.xz
atomic: drop __sync builtins
The correctness of the stdatomic.h emulation via the __sync builtins is questionable, and we've been relying on exact stdatomic semantics for a while, so just get rid of it. Compilers which support __sync but not stdatomic.h will use to the slow mutex fallback. Not sure about the __atomic builtins. It doesn't seem to harm either, so leave it for now.
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 1 insertions, 9 deletions
diff --git a/wscript b/wscript
index a7ec0a9c3d..6ebc3f9fd0 100644
--- a/wscript
+++ b/wscript
@@ -179,19 +179,11 @@ main_dependencies = [
'test = __atomic_add_fetch(&test, 1, __ATOMIC_SEQ_CST)')),
'deps_neg': [ 'stdatomic' ],
}, {
- 'name': 'sync-builtins',
- 'desc': 'compiler support for __sync built-ins',
- 'func': check_statement('stdint.h',
- 'int64_t test = 0;'
- '__typeof__(test) x = ({int a = 1; a;});'
- 'test = __sync_add_and_fetch(&test, 1)'),
- 'deps_neg': [ 'stdatomic', 'atomic-builtins' ],
- }, {
'name': 'atomics',
'desc': 'stdatomic.h support or emulation',
'func': check_true,
'req': True,
- 'deps_any': ['stdatomic', 'atomic-builtins', 'sync-builtins', 'gnuc'],
+ 'deps_any': ['stdatomic', 'atomic-builtins', 'gnuc'],
}, {
'name': 'c11-tls',
'desc': 'C11 TLS support',