From 8ee355155102ad7c2e473f179f4879c6e468f19e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 11 Apr 2001 19:57:49 +0000 Subject: Update. 2001-04-11 David Mosberger * sysdeps/ia64/htonl.S: Drop superfluous "alloc". * sysdeps/ia64/htons.S: Likewise. * sysdeps/ia64/memset.S: Add unwind directives. * sysdeps/ia64/strncpy.S: Likewise. * sysdeps/ia64/strcat.S: Likewise. * sysdeps/ia64/memccpy.S: Add unwind directives. Drop superfluous restore of ar.pfs. * sysdeps/ia64/strchr.S: Likewise. * sysdeps/ia64/memmove.S: Likewise. * sysdeps/ia64/memcpy.S: Likewise. * sysdeps/ia64/memcmp.S: Likewise. * sysdeps/ia64/memchr.S: Likewise. * sysdeps/ia64/strcmp.S: Likewise. * sysdeps/ia64/strlen.S: Likewise. * sysdeps/ia64/strcpy.S: Likewise. * sysdeps/ia64/strncmp.S: Likewise. --- sysdeps/ia64/strncpy.S | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sysdeps/ia64/strncpy.S') diff --git a/sysdeps/ia64/strncpy.S b/sysdeps/ia64/strncpy.S index 96f19c47fa..ae2e9a4561 100644 --- a/sysdeps/ia64/strncpy.S +++ b/sysdeps/ia64/strncpy.S @@ -1,6 +1,6 @@ /* Optimized version of the standard strncpy() function. This file is part of the GNU C Library. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2001 Free Software Foundation, Inc. Contributed by Dan Pop . The GNU C Library is free software; you can redistribute it and/or @@ -33,8 +33,8 @@ #include #undef ret -#define saved_pfs loc0 -#define saved_b0 loc1 +#define saved_b0 loc0 +#define saved_pfs loc1 #define saved_pr loc2 #define saved_lc loc3 #define tmp loc4 @@ -47,10 +47,14 @@ #define rc ret0 ENTRY(strncpy) + .prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(3) alloc saved_pfs = ar.pfs, 3, 6, 3, 0 mov saved_b0 = b0 + .save pr, saved_pr mov saved_pr = pr + .save ar.lc, saved_lc mov saved_lc = ar.lc + .body cmp.gtu p6, p0 = 24, n (p6) br.cond.spnt .cpyfew mov out0 = src -- cgit 1.4.1