aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-11-28 18:19:05 -0800
committerRichard Henderson <rth@gcc.gnu.org>2011-11-28 18:19:05 -0800
commitcef86eb2888172eb1d262ae7227abd1e30cf1244 (patch)
treee0b09f20d2ce0b5309abefd38e8617fd62aa2ba9 /libgomp
parentde4f64c73d09e75265451a435fbf26ed3a5d13f5 (diff)
downloadgcc-cef86eb2888172eb1d262ae7227abd1e30cf1244.zip
gcc-cef86eb2888172eb1d262ae7227abd1e30cf1244.tar.gz
gcc-cef86eb2888172eb1d262ae7227abd1e30cf1244.tar.bz2
* libgomp.h (enum memmodel): New.
From-SVN: r181794
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog4
-rw-r--r--libgomp/libgomp.h11
2 files changed, 15 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index b52de1a..e248138 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -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.
diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
index 9cf9d32..2c9c071 100644
--- a/libgomp/libgomp.h
+++ b/libgomp/libgomp.h
@@ -45,6 +45,17 @@
# 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"