[Commits] [svoj at mariadb.org: 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:31:47 EEST 2014


Hi Kentoku,

FYI: I just pushed this fix to 10.0. There're also some test failures on Power8
in mroonga/storage suite, mroonga/wrapper was 100% successful.

Regards,
Sergey

----- Forwarded message from Sergey Vojtovich <svoj at mariadb.org> -----

Date: Thu,  9 Oct 2014 08:25:58 +0000 (UTC)
From: Sergey Vojtovich <svoj at mariadb.org>
To: commits at mariadb.org
Subject: [Commits] Rev 4437: Fixed mroonga build failure on Power8: define generic gcc version of in lp:maria/10.0

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

_______________________________________________
commits mailing list
commits at mariadb.org
https://lists.askmonty.org/cgi-bin/mailman/listinfo/commits

----- End forwarded message -----


More information about the commits mailing list