From ecdaa7c9207615a1dc5882560095389a18b1e2ca Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 5 Jun 2013 15:44:52 -0700 Subject: BZ #15583: r7 uninitialized in strcpy.S when ARM_HAS_T2 undefined --- ports/ChangeLog.arm | 6 ++++++ ports/sysdeps/arm/armv6/strcpy.S | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'ports') diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm index 4c73bb3..37eac21 100644 --- a/ports/ChangeLog.arm +++ b/ports/ChangeLog.arm @@ -1,3 +1,9 @@ +2013-06-05 Richard Henderson + + [BZ #15583] + * sysdeps/arm/armv6/strcpy.S (strcpy): Fix register usage in + non ARCH_HAS_T2 case. + 2013-06-05 Joseph Myers * sysdeps/arm/machine-gmon.h: Remove trailing whitespace. diff --git a/ports/sysdeps/arm/armv6/strcpy.S b/ports/sysdeps/arm/armv6/strcpy.S index cd13ff7..69e82d8 100644 --- a/ports/sysdeps/arm/armv6/strcpy.S +++ b/ports/sysdeps/arm/armv6/strcpy.S @@ -89,7 +89,7 @@ ENTRY (strcpy) tst r0, #3 @ Test alignment of DEST movt r7, #0x0101 #else - ldr ip, =0x01010101 + ldr r7, =0x01010101 tst r0, #3 #endif bne .Lunaligned -- cgit v1.1