This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: *more* alignment problems
- To: dje at watson dot ibm dot com
- Subject: Re: *more* alignment problems
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Thu, 30 Mar 00 16:26:33 EST
- Cc: gcc at gcc dot gnu dot org
Because all of those bitfield functions were manipulating alignment in
bytes, the SLOW_UNALIGNED_ACCESS macro expects the alignment to be
bytes. The primary question for SLOW_UNALIGNED_ACCESS is whether the
alignment is less than the natural alignment for the type, usually in
granularity of bytes, not bits.
Why does it matter which way it's defined? I changed the macro in
rs6000.h to accept bits.