From: Richard Henderson Date: Tue, 29 Nov 2011 02:19:05 +0000 (-0800) Subject: * libgomp.h (enum memmodel): New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cef86eb2888172eb1d262ae7227abd1e30cf1244;p=gcc.git * libgomp.h (enum memmodel): New. From-SVN: r181794 --- 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"