This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/45637] Suspicious code for bit fields
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2010 15:30:21 -0000
- Subject: [Bug target/45637] Suspicious code for bit fields
- References: <bug-45637-16781@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-09-10 15:30 -------
>1. index is constant or variable, and
Yes that is correct.
>2. the 'bar' field type.
The alignment of the access is different in those cases.
>In any case byte accesses should be used.
Why, word access is just as fast (if not faster) than a byte access on PPC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45637