]> sourceware.org Git - glibc.git/commitdiff
* sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
authorRoland McGrath <roland@gnu.org>
Mon, 30 Sep 2002 20:15:35 +0000 (20:15 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 30 Sep 2002 20:15:35 +0000 (20:15 +0000)
from the next quad are needed.

ChangeLog
sysdeps/ia64/strncpy.S

index 0d63f4189570c51d37627a32ede6d01a13d4538f..d46b7d1728516fc68af65c79bf7845938474661a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
+       from the next quad are needed.
+
 2002-09-30  Roland McGrath  <roland@redhat.com>
 
        * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
index f5c1c9da6fe7ddc5bf7b1344838f66c48028cadf..202741f98020d6f4fd8138bcbe258e1cc6769a55 100644 (file)
@@ -1,6 +1,6 @@
 /* Optimized version of the standard strncpy() function.
    This file is part of the GNU C Library.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
    Contributed by Dan Pop <Dan.Pop@cern.ch>
              and Jakub Jelinek <jakub@redhat.com>.
 
@@ -210,8 +210,11 @@ ENTRY(strncpy)
        mov     pr = saved_pr, -1       // restore the predicate registers
        br.ret.sptk.many b0
 .recovery2:
+       add     c = 8, len
        add     tmp = -8, asrc ;;
-       ld8     r[0] = [tmp]
+       cmp.gtu p8, p5 = c, thresh ;;
+(p8)   ld8     r[0] = [tmp]
+(p5)   mov     r[0] = r0
        br.cond.sptk .back2
 .recovery3:
        add     tmp = -MEMLAT * 8, src ;;
This page took 0.051454 seconds and 5 git commands to generate.