[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access
sqrammi at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Sep 1 22:08:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246
Jeff Hansen <sqrammi at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sqrammi at hotmail dot com
--- Comment #8 from Jeff Hansen <sqrammi at hotmail dot com> ---
Why would this be a bug in the kernel?
Why is gcc trying to load a word or short when it's a 4-bit bitfield?? So
you're recommending that we add __attribute__((packed)) to the struct? Is there
any other way/option to change this behavior?
More information about the Gcc-bugs
mailing list