From: Ivan Maidanski Date: Tue, 21 Feb 2017 21:05:11 +0000 (+0300) Subject: Fix 'Cannot implement CAS_full on this architecture' build error (cris) X-Git-Tag: v7.6.0~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66470b3153566f2123cd23a9522fab0612278146;p=libatomic_ops Fix 'Cannot implement CAS_full on this architecture' build error (cris) * src/atomic_ops.h [__cris__ || CRIS] (AO_CAN_EMUL_CAS): Define. * src/atomic_ops/sysdeps/gcc/cris.h: Add TODO to implement CAS. --- diff --git a/src/atomic_ops.h b/src/atomic_ops.h index 6f5f192..1057136 100644 --- a/src/atomic_ops.h +++ b/src/atomic_ops.h @@ -300,6 +300,7 @@ # 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__) diff --git a/src/atomic_ops/sysdeps/gcc/cris.h b/src/atomic_ops/sysdeps/gcc/cris.h index be58ddc..f31c21e 100644 --- a/src/atomic_ops/sysdeps/gcc/cris.h +++ b/src/atomic_ops/sysdeps/gcc/cris.h @@ -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. */