bit fields && data tearing

Jakub Jelinek jakub at redhat.com
Thu Sep 4 22:29:01 EST 2014


On Thu, Sep 04, 2014 at 08:24:12AM -0400, Peter Hurley wrote:
> And I just confirmed with the Alpha cross-compiler that the fields are
> not 'padded out' if volatile either.

They can't be, struct layout is part of the ABI.
Guess you can introduce say atomic_bool and similar typedefs which would be
bool or char on most arches and on alpha int.

	Jakub


More information about the Linuxppc-dev mailing list