[cfe-dev] __atomic_ builtins for 64-bit types in 32-bit mode
David Chisnall
David.Chisnall at cl.cam.ac.uk
Thu Jan 31 03:05:27 PST 2013
On 31 Jan 2013, at 10:49, Kostya Serebryany wrote:
> Any other suggestion w.r.t __atomic_ builtins for 64-bit types in 32-bit mode?
Beyond 'don't use them'? The gcc-compatible atomic builtins are implemented solely to support the poor design choices in libstdc++. They can not be used safely with C11 code because they do not require _Atomic-qualified types and so do not respect the stricter alignment and padding requirements that these types may require.
David
More information about the cfe-dev
mailing list