[Commits] Rev 4437: Fixed mroonga build failure on Power8: define generic gcc version of in lp:maria/10.0

Sergey Vojtovich svoj at mariadb.org
Thu Oct 9 11:25:58 EEST 2014


At lp:maria/10.0

------------------------------------------------------------
revno: 4437
revision-id: svoj at mariadb.org-20141009082545-nt183b7y1gjihfjp
parent: psergey at askmonty.org-20141006112922-45pcytb993xcwh89
committer: Sergey Vojtovich <svoj at mariadb.org>
branch nick: 10.0-mroonga
timestamp: Thu 2014-10-09 12:25:45 +0400
message:
  Fixed mroonga build failure on Power8: define generic gcc version of
  GRN_SET_64BIT.
=== modified file 'storage/mroonga/vendor/groonga/lib/groonga_in.h'
--- a/storage/mroonga/vendor/groonga/lib/groonga_in.h	2014-09-20 15:33:45 +0000
+++ b/storage/mroonga/vendor/groonga/lib/groonga_in.h	2014-10-09 08:25:45 +0000
@@ -505,6 +505,9 @@ typedef int grn_cond;
 /* todo */
 #  define GRN_SET_64BIT(p,v) \
   (void)atomic_swap_64(p, v)
+# elif defined(__ATOMIC_SEQ_CST) /* GCC atomic builtins */
+#  define GRN_SET_64BIT(p,v) \
+   __atomic_store_n(p, v, __ATOMIC_SEQ_CST)
 # endif /* ATOMIC 64BIT SET */
 
 # ifdef HAVE_MKOSTEMP



More information about the commits mailing list