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>
Tue, 21 Feb 2017 21:05:11 +0000 (00:05 +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 6f5f192..1057136 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 be58ddc..f31c21e 100644 (file)
@@ -38,7 +38,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.
  */