diff options
author | Andrew Macleod <amacleod@redhat.com> | 2011-11-06 14:55:48 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@redhat.com> | 2011-11-06 14:55:48 +0000 |
commit | 8ce752694d8e67fab73c752c2fcea4794d325231 (patch) | |
tree | c0f499483e35c60c1b9f065f10a630e6fa4345bc /gcc/coretypes.h | |
parent | a9e6c8883b8354aad94690b69ac7fccdf7fdb84c (diff) |
Check in patch/merge from cxx-mem-model Branch
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@181031 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coretypes.h')
-rw-r--r-- | gcc/coretypes.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/coretypes.h b/gcc/coretypes.h index 45cdbbd6fd6..1374a98a810 100644 --- a/gcc/coretypes.h +++ b/gcc/coretypes.h @@ -181,5 +181,18 @@ union _dont_use_tree_here_; #endif +/* Memory model types for the __atomic* builtins. + This must match the order in libstdc++-v3/include/bits/atomic_base.h. */ +enum memmodel +{ + MEMMODEL_RELAXED = 0, + MEMMODEL_CONSUME = 1, + MEMMODEL_ACQUIRE = 2, + MEMMODEL_RELEASE = 3, + MEMMODEL_ACQ_REL = 4, + MEMMODEL_SEQ_CST = 5, + MEMMODEL_LAST = 6 +}; + #endif /* coretypes.h */ |