This is the mail archive of the gcc-help@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]

Unaligned access to packed structs on ppc405


Greetings,
I am cross-compiling on GCC 3.4.1 for the PowerPC 405, which can handle unaligned accesses in hardware.
Whenever I am accessing members of a packed bit-struct by pointer, the compiler produces byte accesses, instead of 4-byte acceses.
I've tried to use |-mstrict-align but to no avail.
Am I doing something wrong?


Thanks in advance,
Yaro
|


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