This fixes the ordering issues with a couple of Alan's pending patches, and put the enumeration where the entire library can use it.
Committed. r~
* libgomp.h (enum memmodel): New. 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"