atomic_load
Eric Botcazou
ebotcazou@libertysurf.fr
Fri Nov 26 08:29:24 GMT 2021
> This is a silent and dangerous incorrect code generation issue.
Let's avoid this kind of FUD, please, builtins are low-level devices and
people must know what they are doing and be prepared for caveats.
> If these functions are not meant to be used to exising
> data, then at least the documentation needs to be changed
> and include a big warning that this only happens to work
> corectly if the data has sufficient alignment for the
> specific architecture (which of course makes it impossible
> to use this in a portable way).
The last part of the sentence is again a blatant overstatement but I agree
that the alignment caveat ought to be documented. Please suggest a wording to
that effect and post a patch onto the gcc-patches@ ML. Thanks in advance.
--
Eric Botcazou
More information about the Gcc
mailing list