This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PING: Default to -fstrict-volatile-bitfields for ARM EABI


> For example, targets with memory-mapped peripheral registers might
> require all such accesses to be 16 bits wide; with this flag the user
> could declare all peripheral bitfields as "unsigned short" (assuming
> short is 16 bits on these targets) to force GCC to use 16 bit accesses
> instead of, perhaps, a more efficient 32 bit access.

This is the confusing part.  That says that if I use this switch and have
a 16-bit bitfield, it'll use 16-bit insns.  But apparently, what's meant
is that it should use insns corresponding to the *outer* size.  But that's
not what it seems to say.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]