bitfield structures

Peter Hurley peter at hurleysoftware.com
Thu Oct 16 08:57:18 PDT 2014


On 10/16/2014 10:14 AM, Alex Deucher wrote:
> Are there any strong objections to these sorts of structures?

You may want to blacklist certain compiler version/arch combinations,
or get the affected arches to do it.

gcc up to 4.7.1 on ia64 and ppc64 generates 64-bit wide RMW cycles
on bitfields, regardless of the specified type or actual field width.
The enlarged write overwrites adjacent fields.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52080

Regards,
Peter Hurley


More information about the dri-devel mailing list