diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-03-06 21:06:34 +0000 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-03-09 00:42:27 +0000 |
commit | e79e463556d6a08432a7008d185c958907fa4f40 (patch) | |
tree | 3ac23b20825f3ae02cea4b6d16b6f9368892aa2b /auto/atomic | |
parent | 0c2d7786b1b79c952712179d271efd9c6057ffc7 (diff) | |
download | unit-e79e463556d6a08432a7008d185c958907fa4f40.tar.gz unit-e79e463556d6a08432a7008d185c958907fa4f40.tar.bz2 |
Remove support for IBM's XL C compiler
We really only support building Unit with GCC and Clang.
Cc: Dan Callahan <d.callahan@f5.com>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'auto/atomic')
-rw-r--r-- | auto/atomic | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/auto/atomic b/auto/atomic index f99adf7e..7acd4667 100644 --- a/auto/atomic +++ b/auto/atomic @@ -65,55 +65,6 @@ if [ $nxt_found = no ]; then fi -# AIX xlC builtin atomic operations. - -if [ $nxt_found = no ]; then - - if [ $NXT_64BIT = 1 ]; then - nxt_feature_test="int main(void) { - long n = 0; - long o = 0; - - if (!__compare_and_swaplp(&n, &o, 3)) - return 1; - if (__fetch_and_addlp(&n, 1) != 3) - return 1; - if (__fetch_and_swaplp(&n, 5) != 4) - return 1; - if (n != 5) - return 1; - __isync(); - __lwsync(); - return 0; - }" - else - nxt_feature_test="int main(void) { - int n = 0; - int o = 0; - - if (!__compare_and_swap(&n, &o, 3)) - return 1; - if (__fetch_and_add(&n, 1) != 3) - return 1; - if (__fetch_and_swap(&n, 5) != 4) - return 1; - if (n != 5) - return 1; - __isync(); - __lwsync(); - return 0; - }" - fi - - nxt_feature="xlC builtin atomic operations" - nxt_feature_name=NXT_HAVE_XLC_ATOMIC - nxt_feature_run=yes - nxt_feature_incs= - nxt_feature_libs= - . auto/feature -fi - - if [ $nxt_found = no ]; then $echo $echo $0: error: no atomic operations found. |