diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2012-02-15 16:41:25 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2012-02-15 16:41:25 +0000 |
commit | b1cef2a5429146655e2d9c99e29c6d2422f6255c (patch) | |
tree | 1b7db5948ca0e17d1b685f670d43116a354afa73 /gcc/doc | |
parent | adc44a79d6ff71f2c5d504bded1985f8899165b3 (diff) | |
download | gcc-b1cef2a5429146655e2d9c99e29c6d2422f6255c.zip gcc-b1cef2a5429146655e2d9c99e29c6d2422f6255c.tar.gz gcc-b1cef2a5429146655e2d9c99e29c6d2422f6255c.tar.bz2 |
extend.texi: Reserve upper bits of memory model for future use.
2012-02-15 Andrew MacLeod <amacleod@redhat.com>
* extend.texi: Reserve upper bits of memory model for future use.
From-SVN: r184277
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/extend.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index b666a2e..e4d17cf 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7092,6 +7092,11 @@ functions will map any runtime value to @code{__ATOMIC_SEQ_CST} rather than invoke a runtime library call or inline a switch statement. This is standard compliant, safe, and the simplest approach for now. +The memory model parameter is a signed int, but only the lower 8 bits are +reserved for the memory model. The remainder of the signed int is reserved +for future use and should be 0. Use of the predefined atomic values will +ensure proper usage. + @deftypefn {Built-in Function} @var{type} __atomic_load_n (@var{type} *ptr, int memmodel) This built-in function implements an atomic load operation. It returns the contents of @code{*@var{ptr}}. |