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.24-111-g2bad840


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  2bad840e9d4b3e714b4f20ad6b46a76e7be1d8fe (commit)
       via  f306ea1ada5fa0bdd87f070aa58162039676fa06 (commit)
       via  847c9161c7745b7e15f841a1ec40fe11d5aae515 (commit)
       via  ee8a49071cba845b2ee5060b0d4238f9534b5ee3 (commit)
       via  7b7c39450b3c4ab35b4960346e61d7b177ee728e (commit)
      from  4d728087ef8cc826b05bd21d0c74d4eca9b1a27d (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=2bad840e9d4b3e714b4f20ad6b46a76e7be1d8fe

commit 2bad840e9d4b3e714b4f20ad6b46a76e7be1d8fe
Author: Paul E. Murphy <murphyp@linux.vnet.ibm.com>
Date:   Thu Aug 25 17:25:40 2016 -0500

    Remove unneeded stubs for k_rem_pio2l.
    
    This is only used for the float and double variants.
    
    Instead, just add it to the type specific list of files,
    and remove all stubs, and remove the declaration from
    math_private.h.
    
    I verified x86_64, i486, ia64, m68k, and ppc64 build.

diff --git a/ChangeLog b/ChangeLog
index 9f25a82..fa9394d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
 
+	* math/Makefile (libm-calls): Remove k_rem_pio2F.
+	(type-double-routines): Add k_rem_pio2.
+	(type-float-routines): Add k_rem_pio2f.
+
+	* sysdeps/generic/math_private.h:
+	(__kernel_rem_pio2l): Removed.
+
+	* math/k_rem_pio2l.c: Removed.
+	* sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
+	* sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
+	* sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
+	* sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
+
+2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+
 	* math/Makefile (gen-libm-calls): Add s_fmin
 	(libm-calls): Remove above.
 
diff --git a/math/Makefile b/math/Makefile
index c0d7ff0..6a90a36 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -56,7 +56,7 @@ libm-calls =								  \
 	e_hypotF e_j0F e_j1F e_jnF e_lgammaF_r e_logF e_log10F e_powF	  \
 	e_rem_pio2F e_remainderF e_scalbF e_sinhF e_sqrtF e_gammaF_r	  \
 	e_ilogbF							  \
-	k_cosF k_rem_pio2F k_sinF k_tanF s_asinhF s_atanF s_cbrtF	  \
+	k_cosF k_sinF k_tanF s_asinhF s_atanF s_cbrtF			  \
 	s_ceilF s_cosF s_erfF s_expm1F s_fabsF				  \
 	s_floorF s_log1pF w_log1pF s_logbF				  \
 	s_nextafterF s_nexttowardF s_rintF s_scalblnF w_scalblnF	  \
@@ -99,11 +99,11 @@ type-ldouble-yes := ldouble
 type-double-suffix :=
 type-double-routines := branred doasin dosincos halfulp mpa mpatan2	\
 		       mpatan mpexp mplog mpsqrt mptan sincos32 slowexp	\
-		       slowpow sincostab
+		       slowpow sincostab k_rem_pio2
 
 # float support
 type-float-suffix := f
-type-float-routines :=
+type-float-routines := k_rem_pio2f
 
 
 # Apply suffix to each type in arg 1
diff --git a/math/k_rem_pio2l.c b/math/k_rem_pio2l.c
deleted file mode 100644
index 01bf158..0000000
--- a/math/k_rem_pio2l.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <math.h>
-#include <math_private.h>
-#include <stdio.h>
-#include <errno.h>
-
-int
-__kernel_rem_pio2l (long double *x, long double *y, int e0, int nx, int prec,
-		    const int *ipio2)
-{
-  fputs ("__kernel_rem_pio2l not implemented\n", stderr);
-  __set_errno (ENOSYS);
-  return 0.0;
-}
-
-stub_warning (__kernel_rem_pio2l)
diff --git a/sysdeps/generic/math_private.h b/sysdeps/generic/math_private.h
index cf1865d..24adcfb 100644
--- a/sysdeps/generic/math_private.h
+++ b/sysdeps/generic/math_private.h
@@ -317,8 +317,6 @@ extern long double __kernel_cosl (long double,long double);
 extern long double __kernel_tanl (long double,long double,int);
 extern void __kernel_sincosl (long double,long double,
 			      long double *,long double *, int);
-extern int   __kernel_rem_pio2l (long double*,long double*,int,int,
-				 int,const int*);
 
 #ifndef NO_LONG_DOUBLE
 /* prototypes required to compile the ldbl-96 support without warnings */
diff --git a/sysdeps/i386/fpu/k_rem_pio2l.c b/sysdeps/i386/fpu/k_rem_pio2l.c
deleted file mode 100644
index 1347b04..0000000
--- a/sysdeps/i386/fpu/k_rem_pio2l.c
+++ /dev/null
@@ -1,3 +0,0 @@
-/* Empty.  This file is only meant to avoid compiling the file with the
-   same name in the libm-ieee754 directory.  The code is not used since
-   there is an assembler version for all users of this file.  */
diff --git a/sysdeps/ia64/fpu/k_rem_pio2l.c b/sysdeps/ia64/fpu/k_rem_pio2l.c
deleted file mode 100644
index 41254ae..0000000
--- a/sysdeps/ia64/fpu/k_rem_pio2l.c
+++ /dev/null
@@ -1 +0,0 @@
-/* Not needed. */
diff --git a/sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c b/sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c
deleted file mode 100644
index 1347b04..0000000
--- a/sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c
+++ /dev/null
@@ -1,3 +0,0 @@
-/* Empty.  This file is only meant to avoid compiling the file with the
-   same name in the libm-ieee754 directory.  The code is not used since
-   there is an assembler version for all users of this file.  */
diff --git a/sysdeps/x86_64/fpu/k_rem_pio2l.c b/sysdeps/x86_64/fpu/k_rem_pio2l.c
deleted file mode 100644
index eea55a9..0000000
--- a/sysdeps/x86_64/fpu/k_rem_pio2l.c
+++ /dev/null
@@ -1 +0,0 @@
-/*  Not needed.  */

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f306ea1ada5fa0bdd87f070aa58162039676fa06

commit f306ea1ada5fa0bdd87f070aa58162039676fa06
Author: Paul E. Murphy <murphyp@linux.vnet.ibm.com>
Date:   Thu Aug 25 17:03:36 2016 -0500

    Make common fmin implementation generic.

diff --git a/ChangeLog b/ChangeLog
index b719fd6..9f25a82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
 
+	* math/Makefile (gen-libm-calls): Add s_fmin
+	(libm-calls): Remove above.
+
+	* math/s_fmin.c: Refactor into ...
+	* math/s_fmin_template.c: New file.
+
+	* math/s_fminf.c: Removed.
+	* math/s_fminl.c: Removed.
+	* sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
+	(LDOUBLE_fmin_libm_version): New macro.
+
+	* sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
+	* sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
+
+2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+
 	* math/Makefile: (gen-libm-calls): Add s_fmax.
 	(libm-calls): Remove above.
 
diff --git a/math/Makefile b/math/Makefile
index 09c4c56..c0d7ff0 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -49,7 +49,7 @@ gen-libm-calls = cargF conjF cimagF crealF cabsF s_cacosF		  \
 	         s_cacoshF s_ccosF s_ccoshF s_casinF s_csinF s_casinhF	  \
 		 k_casinhF s_csinhF k_casinhF s_csinhF s_catanhF s_catanF \
 		 s_ctanF s_ctanhF s_cexpF s_clogF s_cprojF s_csqrtF	  \
-		 s_cpowF s_clog10F s_fdimF s_nextdownF s_fmaxF
+		 s_cpowF s_clog10F s_fdimF s_nextdownF s_fmaxF s_fminF
 
 libm-calls =								  \
 	e_acosF e_acoshF e_asinF e_atan2F e_atanhF e_coshF e_expF e_fmodF \
@@ -65,7 +65,7 @@ libm-calls =								  \
 	w_tgammaF w_hypotF w_j0F w_j1F w_jnF w_lgammaF w_lgammaF_r	  \
 	w_logF w_log10F w_powF w_remainderF w_scalbF w_sinhF w_sqrtF	  \
 	w_ilogbF							  \
-	s_fpclassifyF s_fminF s_nanF s_truncF		  	  	  \
+	s_fpclassifyF s_nanF s_truncF		  	  	          \
 	s_remquoF e_log2F e_exp2F s_roundF s_nearbyintF s_sincosF	  \
 	s_fmaF s_lrintF s_llrintF s_lroundF s_llroundF e_exp10F w_log2F	  \
 	s_issignalingF $(calls:s_%=m_%) x2y2m1F				  \
diff --git a/math/s_fmin.c b/math/s_fmin_template.c
similarity index 86%
rename from math/s_fmin.c
rename to math/s_fmin_template.c
index d22b916..b70989a 100644
--- a/math/s_fmin.c
+++ b/math/s_fmin_template.c
@@ -20,13 +20,13 @@
 #include <math.h>
 
 
-double
-__fmin (double x, double y)
+FLOAT
+M_DECL_FUNC (__fmin) (FLOAT x, FLOAT y)
 {
   return (islessequal (x, y) || isnan (y)) ? x : y;
 }
-weak_alias (__fmin, fmin)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__fmin, __fminl)
-weak_alias (__fmin, fminl)
+declare_mgen_alias (__fmin, fmin);
+
+#if M_LIBM_NEED_COMPAT (fmin)
+declare_mgen_libm_compat (__fmin, fmin)
 #endif
diff --git a/math/s_fminf.c b/math/s_fminf.c
deleted file mode 100644
index 968373a..0000000
--- a/math/s_fminf.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Return minimum numeric value of X and Y.
-   Copyright (C) 1997-2016 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <math.h>
-
-
-float
-__fminf (float x, float y)
-{
-  return (islessequal (x, y) || isnan (y)) ? x : y;
-}
-weak_alias (__fminf, fminf)
diff --git a/math/s_fminl.c b/math/s_fminl.c
deleted file mode 100644
index 84e9e51..0000000
--- a/math/s_fminl.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Return minimum numeric value of X and Y.
-   Copyright (C) 1997-2016 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <math.h>
-
-
-long double
-__fminl (long double x, long double y)
-{
-  return (islessequal (x, y) || isnan (y)) ? x : y;
-}
-weak_alias (__fminl, fminl)
diff --git a/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h b/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
index 808d2c5..f627264 100644
--- a/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
+++ b/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
@@ -46,6 +46,7 @@
 #define LDOUBLE___clog10l_libm_version GLIBC_2_1
 #define LDOUBLE_fdiml_libm_version GLIBC_2_1
 #define LDOUBLE_fmaxl_libm_version GLIBC_2_1
+#define LDOUBLE_fminl_libm_version GLIBC_2_1
 
 /* Define compat symbols for long double on platforms
    where it was not always a distinct type.  */
diff --git a/sysdeps/ieee754/ldbl-opt/s_fmin.c b/sysdeps/ieee754/ldbl-opt/s_fmin.c
deleted file mode 100644
index c3fe44d..0000000
--- a/sysdeps/ieee754/ldbl-opt/s_fmin.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <math_ldbl_opt.h>
-#include <math/s_fmin.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __fmin, fminl, GLIBC_2_1);
-#endif
diff --git a/sysdeps/ieee754/ldbl-opt/s_fminl.c b/sysdeps/ieee754/ldbl-opt/s_fminl.c
deleted file mode 100644
index 9bfdc7a..0000000
--- a/sysdeps/ieee754/ldbl-opt/s_fminl.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <math_ldbl_opt.h>
-#undef weak_alias
-#define weak_alias(n,a)
-#include <math/s_fminl.c>
-long_double_symbol (libm, __fminl, fminl);

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=847c9161c7745b7e15f841a1ec40fe11d5aae515

commit 847c9161c7745b7e15f841a1ec40fe11d5aae515
Author: Paul E. Murphy <murphyp@linux.vnet.ibm.com>
Date:   Thu Aug 25 16:48:03 2016 -0500

    Make common fmax implementation generic.
    
    Also update aarch64 to ensure the correct s_fmin.c is included.
    The include order favors including the generated copy.

diff --git a/ChangeLog b/ChangeLog
index 1fa70e5..b719fd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,26 @@
 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
 
+	* math/Makefile: (gen-libm-calls): Add s_fmax.
+	(libm-calls): Remove above.
+
+	* math/s_fmax.c: Refactor into ...
+	* math/s_fmax_template.c: New file.
+	* math/s_fmaxf.c: Removed.
+	* math/s_fmaxl.c: Removed.
+
+	* sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
+	(LDOUBLE_fmaxl_libm_version): New macro.
+
+	* sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
+	* sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
+
+	* sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
+	s_fmin.c to pick the aarch64 version of the file.
+	* sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
+	* sysdeps/aarch64/fpu/s_fminf.c: Likewise.
+
+2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+
 	* math/Makefile: (gen-libm-calls): Add s_nextdown.
 	(libm-calls): Remove above.
 
diff --git a/math/Makefile b/math/Makefile
index be6b8ac..09c4c56 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -49,7 +49,7 @@ gen-libm-calls = cargF conjF cimagF crealF cabsF s_cacosF		  \
 	         s_cacoshF s_ccosF s_ccoshF s_casinF s_csinF s_casinhF	  \
 		 k_casinhF s_csinhF k_casinhF s_csinhF s_catanhF s_catanF \
 		 s_ctanF s_ctanhF s_cexpF s_clogF s_cprojF s_csqrtF	  \
-		 s_cpowF s_clog10F s_fdimF s_nextdownF
+		 s_cpowF s_clog10F s_fdimF s_nextdownF s_fmaxF
 
 libm-calls =								  \
 	e_acosF e_acoshF e_asinF e_atan2F e_atanhF e_coshF e_expF e_fmodF \
@@ -65,7 +65,7 @@ libm-calls =								  \
 	w_tgammaF w_hypotF w_j0F w_j1F w_jnF w_lgammaF w_lgammaF_r	  \
 	w_logF w_log10F w_powF w_remainderF w_scalbF w_sinhF w_sqrtF	  \
 	w_ilogbF							  \
-	s_fpclassifyF s_fmaxF s_fminF s_nanF s_truncF		  	  \
+	s_fpclassifyF s_fminF s_nanF s_truncF		  	  	  \
 	s_remquoF e_log2F e_exp2F s_roundF s_nearbyintF s_sincosF	  \
 	s_fmaF s_lrintF s_llrintF s_lroundF s_llroundF e_exp10F w_log2F	  \
 	s_issignalingF $(calls:s_%=m_%) x2y2m1F				  \
diff --git a/math/s_fmax.c b/math/s_fmax_template.c
similarity index 86%
rename from math/s_fmax.c
rename to math/s_fmax_template.c
index 9a8efce..dea53d4 100644
--- a/math/s_fmax.c
+++ b/math/s_fmax_template.c
@@ -19,14 +19,14 @@
 
 #include <math.h>
 
-
-double
-__fmax (double x, double y)
+FLOAT
+M_DECL_FUNC (__fmax) (FLOAT x, FLOAT y)
 {
   return (isgreaterequal (x, y) || isnan (y)) ? x : y;
 }
-weak_alias (__fmax, fmax)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__fmax, __fmaxl)
-weak_alias (__fmax, fmaxl)
+
+declare_mgen_alias (__fmax, fmax);
+
+#if M_LIBM_NEED_COMPAT (fmax)
+declare_mgen_libm_compat (__fmax, fmax)
 #endif
diff --git a/math/s_fmaxf.c b/math/s_fmaxf.c
deleted file mode 100644
index c241963..0000000
--- a/math/s_fmaxf.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Return maximum numeric value of X and Y.
-   Copyright (C) 1997-2016 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <math.h>
-
-
-float
-__fmaxf (float x, float y)
-{
-  return (isgreaterequal (x, y) || isnan (y)) ? x : y;
-}
-weak_alias (__fmaxf, fmaxf)
diff --git a/math/s_fmaxl.c b/math/s_fmaxl.c
deleted file mode 100644
index 3b22735..0000000
--- a/math/s_fmaxl.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Return maximum numeric value of X and Y.
-   Copyright (C) 1997-2016 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <math.h>
-
-
-long double
-__fmaxl (long double x, long double y)
-{
-  return (isgreaterequal (x, y) || isnan (y)) ? x : y;
-}
-weak_alias (__fmaxl, fmaxl)
diff --git a/sysdeps/aarch64/fpu/s_fmax.c b/sysdeps/aarch64/fpu/s_fmax.c
index bc41ec4..c90de34 100644
--- a/sysdeps/aarch64/fpu/s_fmax.c
+++ b/sysdeps/aarch64/fpu/s_fmax.c
@@ -18,4 +18,4 @@
 
 #define FUNC fmax
 #define INSN "fmaxnm"
-#include <s_fmin.c>
+#include <fpu/s_fmin.c>
diff --git a/sysdeps/aarch64/fpu/s_fmaxf.c b/sysdeps/aarch64/fpu/s_fmaxf.c
index 6a234bb..fe9d4f3 100644
--- a/sysdeps/aarch64/fpu/s_fmaxf.c
+++ b/sysdeps/aarch64/fpu/s_fmaxf.c
@@ -20,4 +20,4 @@
 #define INSN "fmaxnm"
 #define TYPE float
 #define REGS "s"
-#include <s_fmin.c>
+#include <fpu/s_fmin.c>
diff --git a/sysdeps/aarch64/fpu/s_fminf.c b/sysdeps/aarch64/fpu/s_fminf.c
index 7860957..97c9839 100644
--- a/sysdeps/aarch64/fpu/s_fminf.c
+++ b/sysdeps/aarch64/fpu/s_fminf.c
@@ -19,4 +19,4 @@
 #define FUNC fminf
 #define TYPE float
 #define REGS "s"
-#include <s_fmin.c>
+#include <fpu/s_fmin.c>
diff --git a/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h b/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
index e78a5e3..808d2c5 100644
--- a/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
+++ b/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
@@ -45,6 +45,7 @@
 #define LDOUBLE_clog10l_libm_version GLIBC_2_1
 #define LDOUBLE___clog10l_libm_version GLIBC_2_1
 #define LDOUBLE_fdiml_libm_version GLIBC_2_1
+#define LDOUBLE_fmaxl_libm_version GLIBC_2_1
 
 /* Define compat symbols for long double on platforms
    where it was not always a distinct type.  */
diff --git a/sysdeps/ieee754/ldbl-opt/s_fmax.c b/sysdeps/ieee754/ldbl-opt/s_fmax.c
deleted file mode 100644
index 11e7591..0000000
--- a/sysdeps/ieee754/ldbl-opt/s_fmax.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <math_ldbl_opt.h>
-#include <math/s_fmax.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __fmax, fmaxl, GLIBC_2_1);
-#endif
diff --git a/sysdeps/ieee754/ldbl-opt/s_fmaxl.c b/sysdeps/ieee754/ldbl-opt/s_fmaxl.c
deleted file mode 100644
index 98221b2..0000000
--- a/sysdeps/ieee754/ldbl-opt/s_fmaxl.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <math_ldbl_opt.h>
-#undef weak_alias
-#define weak_alias(n,a)
-#include <math/s_fmaxl.c>
-long_double_symbol (libm, __fmaxl, fmaxl);

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=ee8a49071cba845b2ee5060b0d4238f9534b5ee3

commit ee8a49071cba845b2ee5060b0d4238f9534b5ee3
Author: Paul E. Murphy <murphyp@linux.vnet.ibm.com>
Date:   Wed Aug 24 16:05:28 2016 -0500

    Make common nextdown implementation generic.
    
    With the exception of those machines using the ldbl-opt in
    an Implies file, this is a trivial transformation.
    
    nextdownl is not subject to the non-trivial versioning rules
    of the other generated functions, so to keep things simple,
    it is handled as a one-off case in ldbl-opt to preserve the
    existing behavior.

diff --git a/ChangeLog b/ChangeLog
index 8366d85..1fa70e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
 
+	* math/Makefile: (gen-libm-calls): Add s_nextdown.
+	(libm-calls): Remove above.
+
+	* math/s_nextdown.c: Refactor into ...
+	* math/s_nextdown_template.c: New file.
+	* math/s_nextdownf.c: Removed.
+	* math/s_nextdownl.c: Removed.
+
+	* sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
+
+2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+
 	* math/Makefile (gen-libm-calls): Add s_fdim.
 	(libm-calls): Move to above.
 
diff --git a/math/Makefile b/math/Makefile
index d4b6d98..be6b8ac 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -49,7 +49,7 @@ gen-libm-calls = cargF conjF cimagF crealF cabsF s_cacosF		  \
 	         s_cacoshF s_ccosF s_ccoshF s_casinF s_csinF s_casinhF	  \
 		 k_casinhF s_csinhF k_casinhF s_csinhF s_catanhF s_catanF \
 		 s_ctanF s_ctanhF s_cexpF s_clogF s_cprojF s_csqrtF	  \
-		 s_cpowF s_clog10F s_fdimF
+		 s_cpowF s_clog10F s_fdimF s_nextdownF
 
 libm-calls =								  \
 	e_acosF e_acoshF e_asinF e_atan2F e_atanhF e_coshF e_expF e_fmodF \
@@ -70,7 +70,7 @@ libm-calls =								  \
 	s_fmaF s_lrintF s_llrintF s_lroundF s_llroundF e_exp10F w_log2F	  \
 	s_issignalingF $(calls:s_%=m_%) x2y2m1F				  \
 	gamma_productF lgamma_negF lgamma_productF			  \
-	s_nextupF s_nextdownF $(gen-libm-calls)
+	s_nextupF $(gen-libm-calls)
 
 libm-compat-calls-ldouble-yes = w_lgamma_compatl k_standardl
 libm-compat-calls = w_lgamma_compatf w_lgamma_compat k_standard k_standardf \
diff --git a/math/s_nextdown.c b/math/s_nextdown.c
deleted file mode 100644
index 06fd1c9..0000000
--- a/math/s_nextdown.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Return the greatest floating-point number less than X.
-   Copyright (C) 2016 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <math.h>
-#include <math_private.h>
-
-/* Return the greatest floating-point number less than X.  */
-double
-__nextdown (double x)
-{
-  return -__nextup (-x);
-}
-
-weak_alias (__nextdown, nextdown)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__nextdown, __nextdownl)
-weak_alias (__nextdown, nextdownl)
-#endif
diff --git a/math/s_nextdownl.c b/math/s_nextdown_template.c
similarity index 89%
rename from math/s_nextdownl.c
rename to math/s_nextdown_template.c
index e7607f5..f286dfd 100644
--- a/math/s_nextdownl.c
+++ b/math/s_nextdown_template.c
@@ -20,10 +20,10 @@
 #include <math_private.h>
 
 /* Return the greatest floating-point number less than X.  */
-long double
-__nextdownl (long double x)
+FLOAT
+M_DECL_FUNC (__nextdown) (FLOAT x)
 {
-  return -__nextupl (-x);
+  return -M_SUF (__nextup) (-x);
 }
 
-weak_alias (__nextdownl, nextdownl)
+declare_mgen_alias (__nextdown, nextdown);
diff --git a/math/s_nextdownf.c b/math/s_nextdownf.c
deleted file mode 100644
index c0d4585..0000000
--- a/math/s_nextdownf.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Return the greatest floating-point number less than X.
-   Copyright (C) 2016 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <math.h>
-#include <math_private.h>
-
-/* Return the greatest floating-point number less than X.  */
-float
-__nextdownf (float x)
-{
-  return -__nextupf (-x);
-}
-
-weak_alias (__nextdownf, nextdownf)
diff --git a/sysdeps/ieee754/ldbl-opt/s_nextdownl.c b/sysdeps/ieee754/ldbl-opt/s_nextdownl.c
new file mode 100644
index 0000000..c92c02e
--- /dev/null
+++ b/sysdeps/ieee754/ldbl-opt/s_nextdownl.c
@@ -0,0 +1,5 @@
+/* nextdownl is not subject to complex aliasing rules.  It was
+   added in glibc 2.24.  */
+#define declare_mgen_alias(from, to) weak_alias (M_SUF (from), M_SUF (to))
+#include <math-type-macros-ldouble.h>
+#include <s_nextdown_template.c>

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=7b7c39450b3c4ab35b4960346e61d7b177ee728e

commit 7b7c39450b3c4ab35b4960346e61d7b177ee728e
Author: Paul E. Murphy <murphyp@linux.vnet.ibm.com>
Date:   Thu Aug 25 11:25:33 2016 -0500

    Make common fdim implementation generic.
    
    The only difference is the usage of math_narrow_eval when
    building s_fdiml.c.  This should be harmless for long double,
    but I did observe some code generation changes on m68k, but
    lack the resources to test it.
    
    Likewise, to more easily support overriding symbol generation,
    the aliasing macros are always conditionally defined on their
    absence to reduce boilerplate.
    
    I also ran builds for i486, ppc64, sparcv9, aarch64,
    s390x and observed no changes to s_fdim* objects.

diff --git a/ChangeLog b/ChangeLog
index 7c9ecd5..8366d85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,37 @@
+2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+
+	* math/Makefile (gen-libm-calls): Add s_fdim.
+	(libm-calls): Move to above.
+
+	* math/s_fdim.c: Renamed and refactored into to ...
+	* math/s_fdim_template.c: New file.
+	* math/s_fdiml.c: Removed.
+	* sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
+	* sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
+
+	* sysdeps/generic/math-type-macros-double.h:
+	(declare_mgen_alias): Don't declare if already declared.
+	* sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
+	Likewise.
+
+	* sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
+	(declare_mgen_alias): Don't declare if already declared.
+	(M_LIBM_NEED_COMPAT): Likewise.
+	(declare_mgen_libm_compat): Likewise.
+	(LDOUBLE_fdiml_libm_version): New macro.
+
+	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
+	Include math/s_fdim.c now that ldbl-opt version is not needed.
+	(declare_mgen_alias): New macro to disable aliasing.
+
+	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
+	(declare_mgen_alias): Likewise.
+	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
+	(declare_mgen_alias): Likewise.
+	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
+	(declare_mgen_alias): Likewise.
+	(M_LIBM_NEED_COMPAT): Likewise.
+
 2016-09-01  Florian Weimer  <fweimer@redhat.com>
 
 	[BZ #20525]
diff --git a/math/Makefile b/math/Makefile
index f1b7937..d4b6d98 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -49,7 +49,7 @@ gen-libm-calls = cargF conjF cimagF crealF cabsF s_cacosF		  \
 	         s_cacoshF s_ccosF s_ccoshF s_casinF s_csinF s_casinhF	  \
 		 k_casinhF s_csinhF k_casinhF s_csinhF s_catanhF s_catanF \
 		 s_ctanF s_ctanhF s_cexpF s_clogF s_cprojF s_csqrtF	  \
-		 s_cpowF s_clog10F
+		 s_cpowF s_clog10F s_fdimF
 
 libm-calls =								  \
 	e_acosF e_acoshF e_asinF e_atan2F e_atanhF e_coshF e_expF e_fmodF \
@@ -65,7 +65,7 @@ libm-calls =								  \
 	w_tgammaF w_hypotF w_j0F w_j1F w_jnF w_lgammaF w_lgammaF_r	  \
 	w_logF w_log10F w_powF w_remainderF w_scalbF w_sinhF w_sqrtF	  \
 	w_ilogbF							  \
-	s_fpclassifyF s_fmaxF s_fminF s_fdimF s_nanF s_truncF		  \
+	s_fpclassifyF s_fmaxF s_fminF s_nanF s_truncF		  	  \
 	s_remquoF e_log2F e_exp2F s_roundF s_nearbyintF s_sincosF	  \
 	s_fmaF s_lrintF s_llrintF s_lroundF s_llroundF e_exp10F w_log2F	  \
 	s_issignalingF $(calls:s_%=m_%) x2y2m1F				  \
diff --git a/math/s_fdim.c b/math/s_fdim.c
deleted file mode 100644
index 1786521..0000000
--- a/math/s_fdim.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Return positive difference between arguments.
-   Copyright (C) 1997-2016 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <errno.h>
-#include <math.h>
-#include <math_private.h>
-
-double
-__fdim (double x, double y)
-{
-  if (islessequal (x, y))
-    return 0.0;
-
-  double r = math_narrow_eval (x - y);
-  if (isinf (r) && !isinf (x) && !isinf (y))
-    __set_errno (ERANGE);
-
-  return r;
-}
-#ifndef __fdim
-weak_alias (__fdim, fdim)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__fdim, __fdiml)
-weak_alias (__fdim, fdiml)
-# endif
-#endif
diff --git a/math/s_fdimf.c b/math/s_fdim_template.c
similarity index 84%
rename from math/s_fdimf.c
rename to math/s_fdim_template.c
index e457f9d..d3e7379 100644
--- a/math/s_fdimf.c
+++ b/math/s_fdim_template.c
@@ -21,18 +21,20 @@
 #include <math.h>
 #include <math_private.h>
 
-float
-__fdimf (float x, float y)
+FLOAT
+M_DECL_FUNC (__fdim) (FLOAT x, FLOAT y)
 {
   if (islessequal (x, y))
-    return 0.0f;
+    return 0;
 
-  float r = math_narrow_eval (x - y);
+  FLOAT r = math_narrow_eval (x - y);
   if (isinf (r) && !isinf (x) && !isinf (y))
     __set_errno (ERANGE);
 
   return r;
 }
-#ifndef __fdimf
-weak_alias (__fdimf, fdimf)
+declare_mgen_alias (__fdim, fdim);
+
+#if M_LIBM_NEED_COMPAT (fdim)
+declare_mgen_libm_compat (__fdim, fdim)
 #endif
diff --git a/math/s_fdiml.c b/math/s_fdiml.c
deleted file mode 100644
index 4a1f672..0000000
--- a/math/s_fdiml.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Return positive difference between arguments.
-   Copyright (C) 1997-2016 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <errno.h>
-#include <math.h>
-
-long double
-__fdiml (long double x, long double y)
-{
-  if (islessequal (x, y))
-    return 0.0f;
-
-  long double r = x - y;
-  if (isinf (r) && !isinf (x) && !isinf (y))
-    __set_errno (ERANGE);
-
-  return r;
-}
-weak_alias (__fdiml, fdiml)
diff --git a/sysdeps/generic/math-type-macros-double.h b/sysdeps/generic/math-type-macros-double.h
index 4149b39..154f416 100644
--- a/sysdeps/generic/math-type-macros-double.h
+++ b/sysdeps/generic/math-type-macros-double.h
@@ -29,12 +29,12 @@
 /* Machines without a distinct long double type
    alias long double functions to their double
    equivalent.  */
-#if defined NO_LONG_DOUBLE
+#if defined NO_LONG_DOUBLE && !defined declare_mgen_alias
 # define declare_mgen_alias(from, to)	    \
    weak_alias (from, to)		    \
    strong_alias (from, from ## l)	    \
    weak_alias (from, to ## l)
-#else
+#elif !defined declare_mgen_alias
 # define declare_mgen_alias(from, to)	    \
    weak_alias (M_SUF (from), M_SUF (to))
 #endif
diff --git a/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h b/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
index 8cb5694..e78a5e3 100644
--- a/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
+++ b/sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
@@ -44,15 +44,20 @@
 #define LDOUBLE_cpowl_libm_version GLIBC_2_1
 #define LDOUBLE_clog10l_libm_version GLIBC_2_1
 #define LDOUBLE___clog10l_libm_version GLIBC_2_1
+#define LDOUBLE_fdiml_libm_version GLIBC_2_1
 
 /* Define compat symbols for long double on platforms
    where it was not always a distinct type.  */
-#define M_LIBM_NEED_COMPAT(f) \
+#if !defined M_LIBM_NEED_COMPAT
+# define M_LIBM_NEED_COMPAT(f) \
   LONG_DOUBLE_COMPAT (libm, LDOUBLE_ ## f ## l_libm_version)
+#endif
 
-#define declare_mgen_libm_compat(from, to)	      \
+#if !defined declare_mgen_libm_compat
+# define declare_mgen_libm_compat(from, to)	      \
   compat_symbol (libm, from, to ## l,		      \
 		 LDOUBLE_ ## to ## l_libm_version);
+#endif
 
 #include_next <math-type-macros-double.h>
 #endif
diff --git a/sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h b/sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h
index d2af4bb..ae3713d 100644
--- a/sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h
+++ b/sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h
@@ -22,8 +22,10 @@
 
 /* Use properly versioned symbols for long double on platforms where
    it was not always a distinct type.  */
-#define declare_mgen_alias(from, to) \
+#if !defined declare_mgen_alias
+# define declare_mgen_alias(from, to) \
   long_double_symbol (libm, from ## l, to ## l);
+#endif
 
 #include_next <math-type-macros-ldouble.h>
 #endif
diff --git a/sysdeps/ieee754/ldbl-opt/s_fdim.c b/sysdeps/ieee754/ldbl-opt/s_fdim.c
deleted file mode 100644
index 02c95bf..0000000
--- a/sysdeps/ieee754/ldbl-opt/s_fdim.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <math_ldbl_opt.h>
-#include <math/s_fdim.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __fdim, fdiml, GLIBC_2_1);
-#endif
diff --git a/sysdeps/ieee754/ldbl-opt/s_fdiml.c b/sysdeps/ieee754/ldbl-opt/s_fdiml.c
deleted file mode 100644
index 06b760b..0000000
--- a/sysdeps/ieee754/ldbl-opt/s_fdiml.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <math_ldbl_opt.h>
-#undef weak_alias
-#define weak_alias(n,a)
-#include <math/s_fdiml.c>
-long_double_symbol (libm, __fdiml, fdiml);
diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
index 2973b49..6176517 100644
--- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
+++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
@@ -19,5 +19,7 @@
 #include <math.h>
 
 #define __fdim __fdim_vis3
+#define declare_mgen_alias(t, f)
+#define M_LIBM_NEED_COMPAT(f) 0
 
 #include <math/s_fdim.c>
diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
index 9666741..2d07f31 100644
--- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
+++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
@@ -27,6 +27,7 @@ sparc_libm_ifunc(__fdim, hwcap & HWCAP_SPARC_VIS3 ? __fdim_vis3 : __fdim_generic
 weak_alias (__fdim, fdim)
 
 # define __fdim __fdim_generic
+# define declare_mgen_alias(t, f)
 #endif
 
-#include <ldbl-opt/s_fdim.c>
+#include <math/s_fdim.c>
diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c
index 75997c6..3f35b0d 100644
--- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c
+++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c
@@ -19,5 +19,6 @@
 #include <math.h>
 
 #define __fdimf __fdimf_vis3
+#define declare_mgen_alias(t, f)
 
 #include <math/s_fdimf.c>
diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c
index 767520f..b9add1c 100644
--- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c
+++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c
@@ -27,6 +27,8 @@ sparc_libm_ifunc(__fdimf, hwcap & HWCAP_SPARC_VIS3 ? __fdimf_vis3 : __fdimf_gene
 weak_alias (__fdimf, fdimf)
 
 # define __fdimf __fdimf_generic
+# define declare_mgen_alias(t, f)
+
 #endif
 
 #include <math/s_fdimf.c>

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

Summary of changes:
 ChangeLog                                          |   98 ++++++++++++++++++++
 math/Makefile                                      |   12 +-
 math/k_rem_pio2l.c                                 |   15 ---
 math/s_fdim.c                                      |   42 ---------
 math/s_fdim_template.c                             |   40 ++++++++
 math/s_fdimf.c                                     |   38 --------
 math/s_fdiml.c                                     |   35 -------
 math/s_fmax.c                                      |   32 -------
 math/s_fmax_template.c                             |   32 +++++++
 math/s_fmaxf.c                                     |   28 ------
 math/s_fmaxl.c                                     |   28 ------
 math/s_fmin.c                                      |   32 -------
 math/s_fmin_template.c                             |   32 +++++++
 math/s_fminf.c                                     |   28 ------
 math/s_fminl.c                                     |   28 ------
 math/s_nextdown.c                                  |   33 -------
 math/s_nextdown_template.c                         |   29 ++++++
 math/s_nextdownf.c                                 |   29 ------
 math/s_nextdownl.c                                 |   29 ------
 sysdeps/aarch64/fpu/s_fmax.c                       |    2 +-
 sysdeps/aarch64/fpu/s_fmaxf.c                      |    2 +-
 sysdeps/aarch64/fpu/s_fminf.c                      |    2 +-
 sysdeps/generic/math-type-macros-double.h          |    4 +-
 sysdeps/generic/math_private.h                     |    2 -
 sysdeps/i386/fpu/k_rem_pio2l.c                     |    3 -
 sysdeps/ia64/fpu/k_rem_pio2l.c                     |    1 -
 sysdeps/ieee754/ldbl-opt/math-type-macros-double.h |   11 ++-
 .../ieee754/ldbl-opt/math-type-macros-ldouble.h    |    4 +-
 sysdeps/ieee754/ldbl-opt/s_fdim.c                  |    5 -
 sysdeps/ieee754/ldbl-opt/s_fdiml.c                 |    5 -
 sysdeps/ieee754/ldbl-opt/s_fmax.c                  |    5 -
 sysdeps/ieee754/ldbl-opt/s_fmaxl.c                 |    5 -
 sysdeps/ieee754/ldbl-opt/s_fmin.c                  |    5 -
 sysdeps/ieee754/ldbl-opt/s_fminl.c                 |    5 -
 sysdeps/ieee754/ldbl-opt/s_nextdownl.c             |    5 +
 sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c              |    3 -
 .../sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c    |    2 +
 .../sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c   |    3 +-
 .../sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c   |    1 +
 .../sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c  |    2 +
 sysdeps/x86_64/fpu/k_rem_pio2l.c                   |    1 -
 41 files changed, 266 insertions(+), 452 deletions(-)
 delete mode 100644 math/k_rem_pio2l.c
 delete mode 100644 math/s_fdim.c
 create mode 100644 math/s_fdim_template.c
 delete mode 100644 math/s_fdimf.c
 delete mode 100644 math/s_fdiml.c
 delete mode 100644 math/s_fmax.c
 create mode 100644 math/s_fmax_template.c
 delete mode 100644 math/s_fmaxf.c
 delete mode 100644 math/s_fmaxl.c
 delete mode 100644 math/s_fmin.c
 create mode 100644 math/s_fmin_template.c
 delete mode 100644 math/s_fminf.c
 delete mode 100644 math/s_fminl.c
 delete mode 100644 math/s_nextdown.c
 create mode 100644 math/s_nextdown_template.c
 delete mode 100644 math/s_nextdownf.c
 delete mode 100644 math/s_nextdownl.c
 delete mode 100644 sysdeps/i386/fpu/k_rem_pio2l.c
 delete mode 100644 sysdeps/ia64/fpu/k_rem_pio2l.c
 delete mode 100644 sysdeps/ieee754/ldbl-opt/s_fdim.c
 delete mode 100644 sysdeps/ieee754/ldbl-opt/s_fdiml.c
 delete mode 100644 sysdeps/ieee754/ldbl-opt/s_fmax.c
 delete mode 100644 sysdeps/ieee754/ldbl-opt/s_fmaxl.c
 delete mode 100644 sysdeps/ieee754/ldbl-opt/s_fmin.c
 delete mode 100644 sysdeps/ieee754/ldbl-opt/s_fminl.c
 create mode 100644 sysdeps/ieee754/ldbl-opt/s_nextdownl.c
 delete mode 100644 sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c
 delete mode 100644 sysdeps/x86_64/fpu/k_rem_pio2l.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]