diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2016-04-15 20:16:19 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2016-05-09 13:31:47 +0100 |
| commit | 04835ea5ec669636fdfbd84d17dbdda4c36bdd9c (patch) | |
| tree | 68cb2f4695224201da6ed6351749d75ea38d7375 /src/doc/reference.md | |
| parent | 50909f2d5036e59871f779500dd722a62421c13c (diff) | |
| download | rust-04835ea5ec669636fdfbd84d17dbdda4c36bdd9c.tar.gz rust-04835ea5ec669636fdfbd84d17dbdda4c36bdd9c.zip | |
Add #[cfg(target_has_atomic)] to get atomic support for the current target
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 397abfe563c..ebb111a2e2e 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -2091,6 +2091,8 @@ The following configurations must be defined by the implementation: * `target_pointer_width = "..."` - Target pointer width in bits. This is set to `"32"` for targets with 32-bit pointers, and likewise set to `"64"` for 64-bit pointers. +* `target_has_atomic = "..."` - Set of integer sizes on which the target can perform + atomic operations. Values are `"8"`, `"16"`, `"32"`, `"64"` and `"ptr"`. * `target_vendor = "..."` - Vendor of the target, for example `apple`, `pc`, or simply `"unknown"`. * `test` - Enabled when compiling the test harness (using the `--test` flag). @@ -2295,6 +2297,9 @@ The currently implemented features of the reference compiler are: * `cfg_target_vendor` - Allows conditional compilation using the `target_vendor` matcher which is subject to change. +* `cfg_target_has_atomic` - Allows conditional compilation using the `target_has_atomic` + matcher which is subject to change. + * `concat_idents` - Allows use of the `concat_idents` macro, which is in many ways insufficient for concatenating identifiers, and may be removed entirely for something more wholesome. |
