[PATCH, ARM] memcpy fix for unaligned access

Greta Yorsh Greta.Yorsh@arm.com
Tue Oct 4 16:03:00 GMT 2011


This patch fixes a bug in memcpy when buffers are not word-aligned and
unaligned access is enable in hardware. 

This bug caused regression test failures in
gcc.c-torture/execute/memcpy-2.c. The bug went undetected in my previous
regression runs, because unaligned access was disabled in my build
configuration. 

No regression on qemu --with-cpu cortex-a9 --with-thumb.

Thank you,
Greta

newlib/ChangeLog

2011-10-04  Greta Yorsh  <Greta.Yorsh@arm.com>

	* libc/machine/arm/memcpy.S: Fix unaligned access copying.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: a15-memcpy-hardware-align-v2.patch
Type: application/octet-stream
Size: 1195 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20111004/79ddb825/attachment.obj>


More information about the Newlib mailing list