m68k structure packing

Richard Henderson rth@cygnus.com
Tue Sep 30 21:13:00 GMT 1997


> Gcc knows that it needs to access bitfields differently when a structure
> is packed.  It may be that gcc will generate correct code with your patch
> for cases that would ordinarily fail ...

Yes it will.  I've used this on a number of occasions to get 
machine independant unaligned loads.  It works on all machines,
even if gcc has to resort to byte loads and shifts.


r~



More information about the Gcc mailing list