about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-19 21:12:42 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-19 21:12:42 +0000
commit685cb06a89cb7878c9b942bad0a9420226f546b0 (patch)
treea89e75f2d56cad36eb178dacff37fde4be52c86f
parent2d26e9ebb320c04293ddd5fd5d482f47cbb3b0e7 (diff)
downloadglibc-685cb06a89cb7878c9b942bad0a9420226f546b0.tar.gz
glibc-685cb06a89cb7878c9b942bad0a9420226f546b0.tar.xz
glibc-685cb06a89cb7878c9b942bad0a9420226f546b0.zip
Update.
1998-05-19  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/i386/i486/bits/string.h (__strstr_g): Initialize %edx
	correctly.  Patch by Horst von Brand <vonbrand@sleipnir.valparaiso.cl>.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/i386/i486/bits/string.h6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 49b633a714..a343d387a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-05-19  Ulrich Drepper  <drepper@cygnus.com>
+
+	* sysdeps/i386/i486/bits/string.h (__strstr_g): Initialize %edx
+	correctly.  Patch by Horst von Brand <vonbrand@sleipnir.valparaiso.cl>.
+
 1998-05-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
 
 	* manual/terminal.texi (I/O Queues): Fix typo.
diff --git a/sysdeps/i386/i486/bits/string.h b/sysdeps/i386/i486/bits/string.h
index 7a919a1ac3..d4c2eaf715 100644
--- a/sysdeps/i386/i486/bits/string.h
+++ b/sysdeps/i386/i486/bits/string.h
@@ -1530,7 +1530,8 @@ __strstr_g (__const char *__haystack, __const char *__needle)
      "2:\n\t"
      "popl	%%ebx"
      : "=a" (__res), "=&c" (__d0), "=&S" (__d1), "=&D" (__d2)
-     : "0" (0), "1" (0xffffffff), "2" (__haystack), "3" (0), "d" (__needle)
+     : "0" (0), "1" (0xffffffff), "2" (__haystack), "3" (__needle),
+       "d" (__needle)
      : "cc");
   return __res;
 }
@@ -1558,7 +1559,8 @@ __strstr_g (__const char *__haystack, __const char *__needle)
      "xorl	%%eax,%%eax\n"
      "2:"
      : "=a" (__res), "=&c" (__d0), "=&S" (__d1), "=&D" (__d2), "=&d" (__d3)
-     : "0" (0), "1" (0xffffffff), "2" (__haystack), "3" (0), "b" (__needle)
+     : "0" (0), "1" (0xffffffff), "2" (__haystack), "3" (__needle),
+       "b" (__needle)
      : "cc");
   return __res;
 }