Problem with packed bitfields on ARM
Dan Kegel
dank@kegel.com
Mon May 6 10:22:00 GMT 2002
Richard Earnshaw wrote:
>
> > In litte-endian mode, gcc-3.0.3 built for ARM makes an unaligned access to a
> > bitfield in a packed structure in fp-bit.c:unpack_d.
> > FLOAT_BIT_ORDER_MISMATCH is defined in this case. This happens with
> > -O2 or without. How can this be fixed in a general way?
>
> I think you need to compile your code with -malignment-traps
Be careful not to use the similarly named -malignant-traps option;
I've seen more than one programmer loose a foot that way :-)
- Dan
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list