This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Bugfix for newlib/libc/machine/m68k/memcpy.S misaligned memory access errors
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: Joerg Blattner <Joerg dot Blattner at varian dot com>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Tue, 31 Jan 2012 17:08:38 +0100
- Subject: Re: Bugfix for newlib/libc/machine/m68k/memcpy.S misaligned memory access errors
- References: <7963552B24A6A1408B5F50B09ADC9F6742F5C2@CR-EX2010-MBX02.vms.ad.varian.com>
- Reply-to: newlib at sourceware dot org
Hi Joerg,
On Jan 24 11:11, Joerg Blattner wrote:
> Hello newlib
>
> While using newlib 1.19 and 1.20 successfully to have a current gcc 4.6.1 based GNU toolchain for a legacy MC68332 based CPU Board for which we still have to maintain code, I encountered misaligned address runtime exceptions in newlib/libc/machine/m68k/memcpy.S running on a MC68332 CPU (CPU32 core).
>
> While investigating this issue, I found the following discussion:
> http://old.nabble.com/-PATCH--more-problems-with-newlib-libc-machine-m68k-memcpy.S-td27515903.html
>
> The final version of the patch in the 2nd post from bottom has been proved to work in a productive environment.
> All the credits for the fix go to the people participating to the linked discussion.
>
> For convenience, I have attached a patch file containing the patch from the mentioned post above to this mail; it has to be applied to the current newlib 1.20 sources with the ignore-white-space option.
>
> I think it would be a good thing to have this fix in the official newlib sources.
probably, but I think we have to ask Josef first, if it's still ok to
include the patch into newlib.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat