[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r7124 - in /fsf/trunk/libc: ./ sysdeps/sparc/sparc64/sparcv9v/ sysdeps/sparc/sparc64/sparcv9v2/



Author: eglibc
Date: Sun Oct 12 00:03:49 2008
New Revision: 7124

Log:
Import glibc-mainline for 2008-10-12

Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v/memcpy.S
    fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v/memset.S
    fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v2/memcpy.S

Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Sun Oct 12 00:03:49 2008
@@ -1,3 +1,12 @@
+2008-10-09  Jakub Jelinek <jakub@xxxxxxxxxx>
+	    David S. Miller  <davem@xxxxxxxxxxxxx>
+
+	* sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
+	make sure any registers used with 64-bit 'branch-on-register'
+	instructions have their top 32-bits clear.
+	* sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
+	* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
+
 2008-09-18  Andreas Schwab  <schwab@xxxxxxx>
 
 	[BZ #6942]

Modified: fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v/memcpy.S
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v/memcpy.S (original)
+++ fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v/memcpy.S Sun Oct 12 00:03:49 2008
@@ -1,5 +1,5 @@
 /* Copy SIZE bytes from SRC to DEST.  For SUN4V Niagara.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David S. Miller (davem@xxxxxxxxxxxxx)
 
@@ -61,6 +61,9 @@
 
 	.align		32
 ENTRY(memcpy)
+#ifndef USE_BPR
+	srl		%o2, 0, %o2
+#endif
 100:	/* %o0=dst, %o1=src, %o2=len */
 	mov		%o0, %g5
 	cmp		%o2, 0

Modified: fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v/memset.S
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v/memset.S (original)
+++ fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v/memset.S Sun Oct 12 00:03:49 2008
@@ -1,5 +1,5 @@
 /* Set a block of memory to some byte value.  For SUN4V Niagara.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David S. Miller (davem@xxxxxxxxxxxxx)
 
@@ -49,7 +49,11 @@
 
 ENTRY(__bzero)
 	clr		%o2
-1:	brz,pn		%o1, 90f
+1:
+#ifndef USE_BRP
+	srl		%o1, 0, %o1
+#endif
+	brz,pn		%o1, 90f
 	 mov		%o0, %o3
 
 	wr		%g0, ASI_P, %asi

Modified: fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v2/memcpy.S
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (original)
+++ fsf/trunk/libc/sysdeps/sparc/sparc64/sparcv9v2/memcpy.S Sun Oct 12 00:03:49 2008
@@ -1,5 +1,5 @@
 /* Copy SIZE bytes from SRC to DEST.  For SUN4V Niagara-2.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David S. Miller (davem@xxxxxxxxxxxxx)
 
@@ -163,6 +163,9 @@
 
 	.align		32
 ENTRY(memcpy)
+#ifndef USE_BPR
+	srl		%o2, 0, %o2
+#endif
 100:	/* %o0=dst, %o1=src, %o2=len */
 	mov		%o0, %g5
 	cmp		%o2, 0