aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches-0.9.30.1/420-i386_strrchr_fix.patch
blob: c47327a1b04e9fa2dc3cb0db858f897a2627e40e (plain)
1
2
3
4
5
6
7
8
9
10
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)