about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/i386/i486/bits/string.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index dbbb2ffcd7..4561f473a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
 
+	* sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
+	parameter of asm must be in %ecx.
+
 	* string/tester.c: Mark test functions as static to avoid warnings.
 
 	* iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
diff --git a/sysdeps/i386/i486/bits/string.h b/sysdeps/i386/i486/bits/string.h
index 1a33630b29..bf4b471efd 100644
--- a/sysdeps/i386/i486/bits/string.h
+++ b/sysdeps/i386/i486/bits/string.h
@@ -1015,7 +1015,7 @@ __strncat_g (char *__dest, __const char __src[], size_t __n)
      "decl	%1\n"
      "2:\n\t"
      "movb	$0,(%1)"
-     : "=&a" (__dummy), "=&D" (__tmp), "=&S" (__src), "=&r" (__n)
+     : "=&a" (__dummy), "=&D" (__tmp), "=&S" (__src), "=&c" (__n)
      : "0" (0), "1" (__tmp), "2" (__src), "3" (__n)
      : "memory", "cc");
 #else