* libgomp.h (enum memmodel): New.
authorRichard Henderson <rth@redhat.com>
Tue, 29 Nov 2011 02:19:05 +0000 (18:19 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 29 Nov 2011 02:19:05 +0000 (18:19 -0800)
From-SVN: r181794

libgomp/ChangeLog
libgomp/libgomp.h

index b52de1a1aea3e5ba5dba1905b7f3827c6417c6a9..e24813884dbe820cd3cb1e344e31c256751fc291 100644 (file)
@@ -1,3 +1,7 @@
+2011-11-28  Richard Henderson  <rth@redhat.com>
+
+       * libgomp.h (enum memmodel): New.
+
 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
 
        * configure: Regenerate.
index 9cf9d3221c5ee2d481d8c14ec4709fd5551a1524..2c9c0716cd5300c2b79045ade307d0739cb27fb7 100644 (file)
 # pragma GCC visibility push(hidden)
 #endif
 
+/* If we were a C++ library, we'd get this from <std/atomic>.  */
+enum memmodel
+{
+  MEMMODEL_RELAXED = 0,
+  MEMMODEL_CONSUME = 1,
+  MEMMODEL_ACQUIRE = 2,
+  MEMMODEL_RELEASE = 3,
+  MEMMODEL_ACQ_REL = 4,
+  MEMMODEL_SEQ_CST = 5
+};
+
 #include "sem.h"
 #include "mutex.h"
 #include "bar.h"