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.26-502-g4699cb8


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  4699cb8b5f25827eec50f071183a4abba04f16e5 (commit)
      from  bcc4e4bb316cf5a29cd1488a582700a3f33cee2b (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4699cb8b5f25827eec50f071183a4abba04f16e5

commit 4699cb8b5f25827eec50f071183a4abba04f16e5
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Oct 3 23:44:41 2017 +0000

    Use libm_alias_double for dbl-64 logb.
    
    This patch makes dbl-64 logb use libm_alias_double.  Both the dbl-64
    and dbl-64/wordsize-64 versions are changed, and the ldbl-opt version
    is removed.  Because of multiarch wrappers, the changed
    implementations are made not to define aliases at all if __logb is
    defined as a macro, as with other functions, so avoiding duplicate
    compat symbols while allowing those wrappers to be simplified.
    
    Tested for x86_64, and verified with build-many-glibcs.py that
    installed stripped shared libraries are unchanged (except on alpha
    where changes from using the wordsize-64 version are expected).
    
    	* sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
    	(logb): Define using libm_alias_double, only if [!__logb].
    	* sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
    	<libm-alias-double.h>.
    	(logb): Define using libm_alias_double, only if [!__logb].
    	* sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
    	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
    	(weak_alias): Do not undefine and redefine.
    	(strong_alias): Likewise.
    	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
    	(weak_alias): Likewise.
    	(strong_alias): Likewise.

diff --git a/ChangeLog b/ChangeLog
index b2e9efa..dceeb54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2017-10-03  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
+	(logb): Define using libm_alias_double, only if [!__logb].
+	* sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
+	<libm-alias-double.h>.
+	(logb): Define using libm_alias_double, only if [!__logb].
+	* sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
+	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
+	(weak_alias): Do not undefine and redefine.
+	(strong_alias): Likewise.
+	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
+	(weak_alias): Likewise.
+	(strong_alias): Likewise.
+
 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
diff --git a/sysdeps/ieee754/dbl-64/s_logb.c b/sysdeps/ieee754/dbl-64/s_logb.c
index 3a26b18..a6de1f6 100644
--- a/sysdeps/ieee754/dbl-64/s_logb.c
+++ b/sysdeps/ieee754/dbl-64/s_logb.c
@@ -18,6 +18,7 @@
 
 #include <math.h>
 #include <math_private.h>
+#include <libm-alias-double.h>
 #include <fix-int-fp-convert-zero.h>
 
 double
@@ -46,7 +47,6 @@ __logb (double x)
     return 0.0;
   return (double) (rix - 1023);
 }
-weak_alias (__logb, logb)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__logb, __logbl) weak_alias (__logb, logbl)
+#ifndef __logb
+libm_alias_double (__logb, logb)
 #endif
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c
index c65cd52..2dfec9a 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c
@@ -20,6 +20,7 @@
 #include <math.h>
 
 #include <math_private.h>
+#include <libm-alias-double.h>
 
 
 double
@@ -41,8 +42,6 @@ __logb (double x)
     }
   return (double) (ex - 1023);
 }
-weak_alias (__logb, logb)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__logb, __logbl)
-weak_alias (__logb, logbl)
+#ifndef __logb
+libm_alias_double (__logb, logb)
 #endif
diff --git a/sysdeps/ieee754/ldbl-opt/s_logb.c b/sysdeps/ieee754/ldbl-opt/s_logb.c
deleted file mode 100644
index 4d7a6db..0000000
--- a/sysdeps/ieee754/ldbl-opt/s_logb.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_logb.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __logb, logbl, GLIBC_2_0);
-#endif
diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
index 3920579..a1c13e2 100644
--- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
+++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
@@ -18,11 +18,6 @@
 
 #include <math.h>
 
-#undef weak_alias
-#define weak_alias(a, b)
-#undef strong_alias
-#define strong_alias(a, b)
-
 #define __logb __logb_ppc32
 
 #include <sysdeps/ieee754/dbl-64/s_logb.c>
diff --git a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
index e428b9a..5eae7c9 100644
--- a/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
+++ b/sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
@@ -18,11 +18,6 @@
 
 #include <math.h>
 
-#undef weak_alias
-#define weak_alias(a, b)
-#undef strong_alias
-#define strong_alias(a, b)
-
 #define __logb __logb_ppc64
 
 #include <sysdeps/ieee754/dbl-64/s_logb.c>

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

Summary of changes:
 ChangeLog                                          |   15 +++++++++++++++
 sysdeps/ieee754/dbl-64/s_logb.c                    |    6 +++---
 sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c        |    7 +++----
 sysdeps/ieee754/ldbl-opt/s_logb.c                  |    5 -----
 .../powerpc32/power4/fpu/multiarch/s_logb-ppc32.c  |    5 -----
 .../powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c |    5 -----
 6 files changed, 21 insertions(+), 22 deletions(-)
 delete mode 100644 sysdeps/ieee754/ldbl-opt/s_logb.c


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]