]> Savannah Git Hosting - gnulib.git/commitdiff
Fix link errors on Android 4.3.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2023 09:50:41 +0000 (10:50 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2023 09:50:41 +0000 (10:50 +0100)
* lib/asyncsafe-spin.c: Don't use the GCC >= 4.1 builtins on Android.
* lib/pthread-spin.c: Likewise.
* lib/simple-atomic.c: Likewise.

ChangeLog
lib/asyncsafe-spin.c
lib/pthread-spin.c
lib/simple-atomic.c

index 7868d312bfe411a9865d5e1bda9a14f4b6b2d902..4d632915b7f9f9393cc5e8891b74a2da4560c168 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-01-11  Bruno Haible  <bruno@clisp.org>
+
+       Fix link errors on Android 4.3.
+       * lib/asyncsafe-spin.c: Don't use the GCC >= 4.1 builtins on Android.
+       * lib/pthread-spin.c: Likewise.
+       * lib/simple-atomic.c: Likewise.
+
 2023-01-10  Jim Meyering  <meyering@fb.com>
 
        update-copyright: also work with two or more updatable lines in a file
index 7a74c32077071177b54109ebf521189a10755c29..66e1669924d5657856fbe733daf70b64dc234cda 100644 (file)
@@ -136,7 +136,7 @@ do_unlock (asyncsafe_spinlock_t *lock)
 #  elif (((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) \
           && !defined __sparc__) \
          || __clang_major__ >= 3) \
-        && !defined __ibmxl__
+        && !defined __ibmxl__ && !defined __ANDROID__
 /* Use GCC built-ins (available in GCC >= 4.1, except on SPARC, and
    clang >= 3.0).
    Documentation:
index ca3e88755a6070137d7eb3decd9aa6501600d5c2..e551f733cfb98addb20cb4cc2189be75b3fe816d 100644 (file)
@@ -164,7 +164,7 @@ pthread_spin_destroy (pthread_spinlock_t *lock)
 
 # elif (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) \
         || __clang_major__ >= 3) \
-       && !defined __ibmxl__
+       && !defined __ibmxl__ && !defined __ANDROID__
 /* Use GCC built-ins (available in GCC >= 4.1 and clang >= 3.0).
    Documentation:
    <https://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html>  */
index 4e52447ed6697964f803b0c43b97fef80629bf8b..ffa126613c154dc8a7d46b33cfb2698701bab1ba 100644 (file)
@@ -69,7 +69,7 @@ atomic_compare_and_swap_ptr (uintptr_t volatile *vp,
 # if (((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) \
        && !defined __sparc__) \
       || __clang_major__ >= 3) \
-     && !defined __ibmxl__
+     && !defined __ibmxl__ && !defined __ANDROID__
 /* Use GCC built-ins (available in GCC >= 4.1, except on SPARC, and
    clang >= 3.0).
    Documentation: