[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#566085: libatomic-ops: sh4: Please support emulation of AO_compare_XXX_emulation function

Source: libatomic-ops
Version: 1.2+cvs20091005-1
Severity: important
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org


This package supports AO_test_and_set_full only.
However, this does not support an AO_compare_XXX function.
sh4 has to use AO_compare_XXX_emulation function for compatibility
with other SH cpu.
Please support emulation of AO_compare_XXX_emulation function

If there is not this function, the software that used these functions
cannot build.
For example, firebird2.5 cannot build now.

I made patch. Could you apply this patch?

Best regards,

Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
--- a/src/atomic_ops.hg	2010-01-21 04:45:04.000000000 +0000
+++ b/src/atomic_ops.h	2010-01-21 04:45:47.000000000 +0000
@@ -243,6 +243,7 @@
 # endif /* __mips__ */
 # if defined(__sh__) || defined(SH4)
 #   include "atomic_ops/sysdeps/gcc/sh.h"
+#   define AO_REQUIRE_CAS
 #   define AO_CAN_EMUL_CAS
 # endif /* __sh__ */
 #endif /* __GNUC__ && !AO_USE_PTHREAD_DEFS */

Reply to: