Fix 'Cannot implement CAS_full on this architecture' build error (cris)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 21 Feb 2017 21:05:11 +0000 (00:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 3 Apr 2017 21:09:12 +0000 (00:09 +0300)
* src/atomic_ops.h [__cris__ || CRIS] (AO_CAN_EMUL_CAS): Define.
* src/atomic_ops/sysdeps/gcc/cris.h: Add TODO to implement CAS.

src/atomic_ops.h
src/atomic_ops/sysdeps/gcc/cris.h

index c3dde0a..496bfc3 100644 (file)
 # endif /* __arm__ */
 # if defined(__cris__) || defined(CRIS)
 #   include "atomic_ops/sysdeps/gcc/cris.h"
+#   define AO_CAN_EMUL_CAS
 #   define AO_GENERALIZE_TWICE
 # endif
 # if defined(__mips__)
index cbca1e7..89eec87 100644 (file)
@@ -42,7 +42,7 @@
  * http://developer.axis.com/doc/hardware/etrax100lx/prog_man/
  *      1_architectural_description.pdf
  *
- * Presumably many other primitives (notably CAS, including the double-
+ * TODO: Presumably many other primitives (notably CAS, including the double-
  * width versions) could be implemented in this manner, if someone got
  * around to it.
  */