From 2dd68dc2ffb689348a7cad668c7710e82c2ff406 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 20 Feb 2002 14:42:03 +0000 Subject: [PATCH] Add missing clobbered register. --- newlib/ChangeLog | 5 +++++ newlib/libc/machine/xscale/strchr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 3d347344a..58a22e10f 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2002-02-20 Nick Clifton + + * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of + clobbered registers. + 2002-02-19 Thomas Fitzsimmons * configure.host (newlib_cflags): When host is in m68* add diff --git a/newlib/libc/machine/xscale/strchr.c b/newlib/libc/machine/xscale/strchr.c index 6ea5032b0..027077cfc 100644 --- a/newlib/libc/machine/xscale/strchr.c +++ b/newlib/libc/machine/xscale/strchr.c @@ -60,7 +60,7 @@ strchr (const char *s, int c) 1:" : "=&r" (s) : "r" (c2), "0" (s) - : "r2", "r3", "r5", "r6", "cc"); + : "r1", "r2", "r3", "r5", "r6", "cc"); #endif while (*s && *s != c)