svn commit: r338896 - projects/openssl111/crypto/openssl/crypto

Jung-uk Kim jkim at FreeBSD.org
Sun Sep 23 02:51:55 UTC 2018


Author: jkim
Date: Sun Sep 23 02:51:54 2018
New Revision: 338896
URL: https://svnweb.freebsd.org/changeset/base/338896

Log:
  Add a hack to build on ARMv4 and ARMv5.

Modified:
  projects/openssl111/crypto/openssl/crypto/threads_pthread.c

Modified: projects/openssl111/crypto/openssl/crypto/threads_pthread.c
==============================================================================
--- projects/openssl111/crypto/openssl/crypto/threads_pthread.c	Sun Sep 23 02:16:47 2018	(r338895)
+++ projects/openssl111/crypto/openssl/crypto/threads_pthread.c	Sun Sep 23 02:51:54 2018	(r338896)
@@ -157,7 +157,8 @@ int CRYPTO_THREAD_compare_id(CRYPTO_THREAD_ID a, CRYPT
 
 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock)
 {
-# if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL)
+# if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && \
+     !(defined(__arm__) && __ARM_ARCH < 6)
     if (__atomic_is_lock_free(sizeof(*val), val)) {
         *ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL);
         return 1;


More information about the svn-src-projects mailing list