[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: improve clang support (23)
From: |
Bruno Haible |
Subject: |
Re: improve clang support (23) |
Date: |
Sun, 16 Aug 2020 18:43:26 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) |
> clang also has the atomic built-ins and the asm support that GCC has.
>
>
> 2020-08-11 Bruno Haible <bruno@clisp.org>
>
> asyncsafe-spin: Use GCC built-ins also on clang.
> * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
> the newer GCC built-ins also on clang.
The tests need an update for this change. And the same GCC built-ins can
also be used in the module 'pthread-spin'.
2020-08-16 Bruno Haible <bruno@clisp.org>
pthread-spin: Use GCC built-ins also on clang.
* lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
also on clang.
2020-08-16 Bruno Haible <bruno@clisp.org>
asyncsafe-spin tests: Update.
* tests/test-asyncsafe-spin2.c: Update to match the change in
lib/asyncsafe-spin.c from 2020-08-11.
0001-asyncsafe-spin-tests-Update.patch
Description: Text Data
0002-pthread-spin-Use-GCC-built-ins-also-on-clang.patch
Description: Text Data