[coldfire-gnu-discuss] Coldfire Toolchain packed structure bug version 4.1.30 and newer
Carlos O'Donell
carlos at codesourcery.com
Wed Apr 18 16:15:50 UTC 2007
On Tue, Apr 17, 2007 at 02:06:55PM -0400, Malnar, Tom wrote:
> We recently ugraded our tools to version 4.1.30 for the coldfire from 3.4.
> Our processor is a MCF5475VR266.
> We noticed a new bug in the assembler code produced when dereferencing a
> packed structure.
>
> Does anyone have any suggestions on some things we could try? Will this
> issue be addressed in a future tool chain release?
Thank you for using Sourcery G++!
The workaround in this case is to use:
m68k-linux-gnu-gcc -mno-strict-align -g -Wall -c test.c
The "-mno-strict-align" tells the compiler to relax the normal m68k
alignment requirements. The Coldfire hardware (v2/3/4e) support
unaligned loads and store so this should be OK.
We will look into this issue. Thanks!
Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos at codesourcery.com
(650) 331-3385 x716
More information about the coldfire-gnu-discuss
mailing list