From 81efe20cd74cefd805b68a99a45248cbf4914212 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 13 Feb 2017 06:45:40 +0100 Subject: atomic: remove __atomic builtin usage Using these was a temporary solution while some compilers implemented the underlying atomic mechanisms, but not the C11 language parts (or that's what I guess). Not really useful for us anymore. Also, there is the slight risk of having subtly incorrect semantics by using potentially changing compiler internals and such. --- wscript | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index e660ff7003..aefa6dd82b 100644 --- a/wscript +++ b/wscript @@ -170,20 +170,12 @@ main_dependencies = [ check_statement('stdatomic.h', 'atomic_int_least64_t test = ATOMIC_VAR_INIT(123);' 'atomic_fetch_add(&test, 1)')) - }, { - 'name': 'atomic-builtins', - 'desc': 'compiler support for __atomic built-ins', - 'func': check_libs(['atomic'], - check_statement('stdint.h', - 'int64_t test = 0;' - 'test = __atomic_add_fetch(&test, 1, __ATOMIC_SEQ_CST)')), - 'deps_neg': [ 'stdatomic' ], }, { 'name': 'atomics', - 'desc': 'stdatomic.h support or emulation', + 'desc': 'stdatomic.h support or slow emulation', 'func': check_true, 'req': True, - 'deps_any': ['stdatomic', 'atomic-builtins', 'gnuc'], + 'deps_any': ['stdatomic', 'gnuc'], }, { 'name': 'c11-tls', 'desc': 'C11 TLS support', -- cgit v1.2.3