uClibc: fix strrchr on i386
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 10 Oct 2009 19:25:05 +0000 (19:25 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 10 Oct 2009 19:25:05 +0000 (19:25 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18016 3c298f89-4303-0410-b956-a3cf2f4a3e73

toolchain/uClibc/patches-0.9.30.1/420-i386_strrchr_fix.patch [new file with mode: 0644]

diff --git a/toolchain/uClibc/patches-0.9.30.1/420-i386_strrchr_fix.patch b/toolchain/uClibc/patches-0.9.30.1/420-i386_strrchr_fix.patch
new file mode 100644 (file)
index 0000000..c47327a
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/libc/string/i386/strrchr.c
++++ b/libc/string/i386/strrchr.c
+@@ -45,7 +45,7 @@ char *strrchr(const char *s, int c)
+           "leal -1(%%esi),%0\n"
+           "2:\ttestb %%al,%%al\n\t"
+           "jne 1b"
+-          :"=g" (__res), "=&S" (d0), "=&a" (d1) :"0" (0),"1" (s),"2" (c));
++          :"=r" (__res), "=&S" (d0), "=&a" (d1) :"0" (0),"1" (s),"2" (c));
+     return __res;
+ }
+ libc_hidden_def(strrchr)
This page took 0.022945 seconds and 4 git commands to generate.