summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/machine/arm/strcpy.c4
-rw-r--r--newlib/libc/machine/arm/strlen-stub.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/machine/arm/strcpy.c b/newlib/libc/machine/arm/strcpy.c
index 6f358e489..f1205b9c1 100644
--- a/newlib/libc/machine/arm/strcpy.c
+++ b/newlib/libc/machine/arm/strcpy.c
@@ -45,7 +45,7 @@ strcpy (char* dst, const char* src)
#if !(defined(__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) || \
(defined (__thumb__) && !defined (__thumb2__)))
#ifdef _ISA_ARM_7
- "pld r1\n\t"
+ "pld [r1]\n\t"
#endif
"eor r2, r0, r1\n\t"
"mov ip, r0\n\t"
@@ -78,7 +78,7 @@ strcpy (char* dst, const char* src)
".p2align 2\n"
"2:\n\t"
#ifdef _ISA_ARM_7
- "pld r1, #8\n\t"
+ "pld [r1, #8]\n\t"
#endif
"ldr r4, [r1], #4\n\t"
"sub r2, r3, "magic1(r5)"\n\t"
diff --git a/newlib/libc/machine/arm/strlen-stub.c b/newlib/libc/machine/arm/strlen-stub.c
index 8f87cba09..fc2daf16f 100644
--- a/newlib/libc/machine/arm/strlen-stub.c
+++ b/newlib/libc/machine/arm/strlen-stub.c
@@ -59,7 +59,7 @@ strlen (const char* str)
"addr .req r1\n\t"
#ifdef _ISA_ARM_7
- "pld r0\n\t"
+ "pld [r0]\n\t"
#endif
/* Word-align address */
"bic addr, r0, #3\n\t"
@@ -116,7 +116,7 @@ strlen (const char* str)
/* and 4 more bytes */
"addeq len, len, #4\n\t"
/* Unroll the loop a bit. */
- "pld addr, #8\n\t"
+ "pld [addr, #8]\n\t"
/* test (data - 0x01010101) */
"ittt eq\n\t"
"subeq r2, data, ip\n\t"