svn commit: r251804 - head/sys/sys

Tijl Coosemans tijl at FreeBSD.org
Tue Jun 18 08:03:13 UTC 2013


On 2013-06-16 12:48, Ed Schouten wrote:
> Author: ed
> Date: Sun Jun 16 10:48:47 2013
> New Revision: 251804
> URL: http://svnweb.freebsd.org/changeset/base/251804
> 
> Log:
>   Move _Atomic() into <sys/cdefs.h>.
>   
>   That way _Atomic() is defined next to all the other C11 keywords for
>   which we provide compatibility for pre-C11 compilers. While there, fix
>   the definition to place "volatile" at the end. Otherwise pointer types
>   will become "volatile T *" instead of "T * volatile".

Do you even need volatile? It seems the only place this has an effect
is initialisation, but there's not supposed to be any concurrent access
then, meaning the value isn't volatile at that point.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20130618/2ddcf9e1/attachment.sig>


More information about the svn-src-all mailing list