From c88fccbef1a9046476ba7882c6240e372d52cd03 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 1 Nov 2002 20:46:53 +0000 Subject: * sysdeps/ia64/strncpy.S: Fix recovery code. --- ChangeLog | 4 ++++ sysdeps/ia64/strncpy.S | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8226c64..afb30a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-11-01 Jakub Jelinek + + * sysdeps/ia64/strncpy.S: Fix recovery code. + 2002-10-30 Jakub Jelinek * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn): diff --git a/sysdeps/ia64/strncpy.S b/sysdeps/ia64/strncpy.S index 202741f..a285f90 100644 --- a/sysdeps/ia64/strncpy.S +++ b/sysdeps/ia64/strncpy.S @@ -217,11 +217,11 @@ ENTRY(strncpy) (p5) mov r[0] = r0 br.cond.sptk .back2 .recovery3: - add tmp = -MEMLAT * 8, src ;; + add tmp = -(MEMLAT + 1) * 8, src ;; ld8 r[MEMLAT] = [tmp] br.cond.sptk .back3 .recovery4: - add tmp = -(MEMLAT - 1) * 8, src ;; + add tmp = -MEMLAT * 8, src ;; ld8 r[MEMLAT - 1] = [tmp] br.cond.sptk .back4 END(strncpy) -- cgit v1.1