Copy code example for fetch and nand from "Legacy __sync Built-in
Functions for Atomic Memory Access" to "Built-in Functions for Memory
Model Aware Atomic Operations".
gcc/
* doc/extend.texi (Built-in Functions for Memory Model Aware
Atomic Operations): Document atomic fetch and nand.
From-SVN: r268062
+2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * doc/extend.texi (Built-in Functions for Memory Model Aware
+ Atomic Operations): Document atomic fetch and nand.
+
2019-01-18 Martin Liska <mliska@suse.cz>
Richard Biener <rguenther@suse.de>
@smallexample
@{ *ptr @var{op}= val; return *ptr; @}
+@{ *ptr = ~(*ptr & val); return *ptr; @} // nand
@end smallexample
The object pointed to by the first argument must be of integer or pointer
@smallexample
@{ tmp = *ptr; *ptr @var{op}= val; return tmp; @}
+@{ tmp = *ptr; *ptr = ~(*ptr & val); return tmp; @} // nand
@end smallexample
The same constraints on arguments apply as for the corresponding