This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.14-218-g15c95c5


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  15c95c5d1a6c5481258e9b1f36dfe12e15a56570 (commit)
      from  39c4451cecac1bc3c3bccf53521333cef18d37c6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=15c95c5d1a6c5481258e9b1f36dfe12e15a56570

commit 15c95c5d1a6c5481258e9b1f36dfe12e15a56570
Author: David S. Miller <davem@davemloft.net>
Date:   Mon Sep 5 10:06:15 2011 -0700

    Fixes and optimizations for 32-bit sparc fabs*().

diff --git a/ChangeLog b/ChangeLog
index 411381e..0afcbc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-09-05  David S. Miller  <davem@davemloft.net>
+
+	* sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
+	stack slot, rather than the struct return pointer slot.
+	* sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
+	* sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
+	* sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
+	* sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
+
 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
 
 	[BZ #13144]
diff --git a/sysdeps/sparc/sparc32/fpu/s_fabsf.S b/sysdeps/sparc/sparc32/fpu/s_fabs.S
similarity index 81%
copy from sysdeps/sparc/sparc32/fpu/s_fabsf.S
copy to sysdeps/sparc/sparc32/fpu/s_fabs.S
index e148724..425fab4 100644
--- a/sysdeps/sparc/sparc32/fpu/s_fabsf.S
+++ b/sysdeps/sparc/sparc32/fpu/s_fabs.S
@@ -1,7 +1,6 @@
 /* Float absolute value, sparc32 version.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Jakub Jelinek <jakub@redhat.com>, 2006.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
@@ -20,10 +19,11 @@
 
 #include <sysdep.h>
 
-ENTRY (__fabsf)
-	st	%o0, [%sp+64]
-	ld	[%sp+64], %f0
+ENTRY (__fabs)
+	st	%o0, [%sp+72]
+	st	%o1, [%sp+76]
+	ldd	[%sp+72], %f0
 	retl
 	 fabss	%f0, %f0
-END (__fabsf)
-weak_alias (__fabsf, fabsf)
+END (__fabs)
+weak_alias (__fabs, fabs)
diff --git a/sysdeps/sparc/sparc32/fpu/s_fabs.c b/sysdeps/sparc/sparc32/fpu/s_fabs.c
deleted file mode 100644
index b883e6e..0000000
--- a/sysdeps/sparc/sparc32/fpu/s_fabs.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <math.h>
-#include <math_ldbl_opt.h>
-
-double __fabs (double x)
-{
-  return __builtin_fabs (x);
-}
-weak_alias (__fabs, fabs)
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __fabs, fabsl, GLIBC_2_0);
-#endif
diff --git a/sysdeps/sparc/sparc32/fpu/s_fabsf.S b/sysdeps/sparc/sparc32/fpu/s_fabsf.S
index e148724..b233c62 100644
--- a/sysdeps/sparc/sparc32/fpu/s_fabsf.S
+++ b/sysdeps/sparc/sparc32/fpu/s_fabsf.S
@@ -21,8 +21,8 @@
 #include <sysdep.h>
 
 ENTRY (__fabsf)
-	st	%o0, [%sp+64]
-	ld	[%sp+64], %f0
+	st	%o0, [%sp+68]
+	ld	[%sp+68], %f0
 	retl
 	 fabss	%f0, %f0
 END (__fabsf)
diff --git a/sysdeps/sparc/sparc32/fpu/s_fabsf.S b/sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S
similarity index 75%
copy from sysdeps/sparc/sparc32/fpu/s_fabsf.S
copy to sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S
index e148724..547840e 100644
--- a/sysdeps/sparc/sparc32/fpu/s_fabsf.S
+++ b/sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S
@@ -1,7 +1,6 @@
-/* Float absolute value, sparc32 version.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+/* Float absolute value, sparc32+v9 version.
+   Copyright (C) 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Jakub Jelinek <jakub@redhat.com>, 2006.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
@@ -20,10 +19,11 @@
 
 #include <sysdep.h>
 
-ENTRY (__fabsf)
-	st	%o0, [%sp+64]
-	ld	[%sp+64], %f0
+ENTRY (__fabs)
+	st	%o0, [%sp+72]
+	st	%o1, [%sp+76]
+	ldd	[%sp+72], %f0
 	retl
-	 fabss	%f0, %f0
-END (__fabsf)
-weak_alias (__fabsf, fabsf)
+	 fabsd	%f0, %f0
+END (__fabs)
+weak_alias (__fabs, fabs)
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies b/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies
new file mode 100644
index 0000000..70568c5
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies
@@ -0,0 +1,3 @@
+# We must list this here to move it ahead of the ldbl-opt code.
+sparc/sparc32/sparcv9/fpu
+sparc/sparc32/fpu

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                          |    9 +++++++++
 sysdeps/sparc/sparc32/fpu/{s_fabsf.S => s_fabs.S}  |   14 +++++++-------
 sysdeps/sparc/sparc32/fpu/s_fabs.c                 |   11 -----------
 sysdeps/sparc/sparc32/fpu/s_fabsf.S                |    4 ++--
 .../sparc32/sparcv9/fpu/s_fabs.S}                  |   18 ++++++++++--------
 .../linux/sparc/sparc32/{ => sparcv9}/fpu/Implies  |    1 +
 6 files changed, 29 insertions(+), 28 deletions(-)
 copy sysdeps/sparc/sparc32/fpu/{s_fabsf.S => s_fabs.S} (81%)
 delete mode 100644 sysdeps/sparc/sparc32/fpu/s_fabs.c
 copy sysdeps/{x86_64/fpu/s_fabs.c => sparc/sparc32/sparcv9/fpu/s_fabs.S} (78%)
 copy sysdeps/unix/sysv/linux/sparc/sparc32/{ => sparcv9}/fpu/Implies (75%)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]