From cef86eb2888172eb1d262ae7227abd1e30cf1244 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 28 Nov 2011 18:19:05 -0800 Subject: [PATCH] * libgomp.h (enum memmodel): New. From-SVN: r181794 --- libgomp/ChangeLog | 4 ++++ libgomp/libgomp.h | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index b52de1a1aea..e24813884db 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2011-11-28 Richard Henderson + + * libgomp.h (enum memmodel): New. + 2011-11-21 Andreas Tobler * configure: Regenerate. diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h index 9cf9d3221c5..2c9c0716cd5 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 . */ +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" -- 2.30.2