]> Savannah Git Hosting - gnulib.git/commitdiff
asyncsafe-spin tests: Update.
authorBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 16:41:57 +0000 (18:41 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 16:41:57 +0000 (18:41 +0200)
* tests/test-asyncsafe-spin2.c: Update to match the change in
lib/asyncsafe-spin.c from 2020-08-11.

ChangeLog
tests/test-asyncsafe-spin2.c

index b750f34335bd34c182a0ea67c003dea7169cc56f..0f7ca8e7d73cfc863434c88af2fdd4f0eba8b17b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2020-08-16  Bruno Haible  <bruno@clisp.org>
 
        setenv: Use tree code also with clang.
index cb0364f7ecfe96a281d23841d1406df3c1850888..38d9324dbbcc2662f87717426bb1bfeef8453540 100644 (file)
@@ -36,7 +36,8 @@
 #define THREAD_COUNT 10
 
 /* Number of operations performed in each thread.  */
-#if !(defined _WIN32 && ! defined __CYGWIN__) && HAVE_PTHREAD_H && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) && !defined __ibmxl__
+#if !(defined _WIN32 && ! defined __CYGWIN__) && HAVE_PTHREAD_H && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || __clang_major__ >= 3) && !defined __ibmxl__
+
 /* The GCC built-ins are known to work fine.  */
 # define REPEAT_COUNT 5000
 #else