From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: wilson@cygnus.com (Jim Wilson) Cc: mrs@wrs.com, egcs@cygnus.com Subject: Re: m68k structure packing Date: Tue, 30 Sep 1997 21:13:00 -0000 Message-id: <199710010411.VAA23924@dot.cygnus.com> References: <199710010258.TAA29729@cygnus.com> X-SW-Source: 1997-09/msg01175.html > 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~