From: Ulrich Drepper Date: Fri, 26 Apr 2002 07:56:14 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.30~21787 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dde9407b507dfbf81a6d36b014cf7f0df935caa9;p=external%2Fglibc.git Update. 2002-04-26 Ulrich Drepper * sysdeps/ia64/strncpy.S: Fix recovery code. Patch by David Mosberger . --- diff --git a/ChangeLog b/ChangeLog index 95dae70..c0e9d2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-26 Ulrich Drepper + + * sysdeps/ia64/strncpy.S: Fix recovery code. + Patch by David Mosberger . + 2002-04-24 Ulrich Drepper * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for diff --git a/sysdeps/ia64/strncpy.S b/sysdeps/ia64/strncpy.S index a6e0e7b..f5c1c9d 100644 --- a/sysdeps/ia64/strncpy.S +++ b/sysdeps/ia64/strncpy.S @@ -205,6 +205,7 @@ ENTRY(strncpy) st1 [in0] = c, 1 // *dest++ = c (p6) cmp.ne p6, p0 = c, r0 br.cloop.dptk .l8 + ;; mov ar.lc = saved_lc // restore the loop counter mov pr = saved_pr, -1 // restore the predicate registers br.ret.sptk.many b0 @@ -213,11 +214,11 @@ ENTRY(strncpy) ld8 r[0] = [tmp] br.cond.sptk .back2 .recovery3: - add tmp = -(MEMLAT + 1) * 8, src ;; + add tmp = -MEMLAT * 8, src ;; ld8 r[MEMLAT] = [tmp] br.cond.sptk .back3 .recovery4: - add tmp = -(MEMLAT + 1) * 8, src ;; - ld8 r[MEMLAT] = [tmp] + add tmp = -(MEMLAT - 1) * 8, src ;; + ld8 r[MEMLAT - 1] = [tmp] br.cond.sptk .back4 END(strncpy)