diff options
author | Zack Weinberg <zackw@panix.com> | 2018-03-07 16:45:35 +0000 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2018-03-10 15:18:08 -0500 |
commit | 0d13dfa17b3bdf4f5ccc179869917cc65f009e7a (patch) | |
tree | d5f8401c43ff6dc7d2f7c823b6e54cbd5a135e69 | |
parent | 054b72cc976000424e1d1017b3d51f071e5dd956 (diff) | |
download | glibc-0d13dfa17b3bdf4f5ccc179869917cc65f009e7a.zip glibc-0d13dfa17b3bdf4f5ccc179869917cc65f009e7a.tar.gz glibc-0d13dfa17b3bdf4f5ccc179869917cc65f009e7a.tar.bz2 |
Don't include math.h/math_private.h in math_ldbl_opt.h.
The sysdeps/ieee754/ldbl-opt version of math_ldbl_opt.h includes
math.h and math_private.h, despite not having any need for those
headers itself; the sysdeps/generic version doesn't. About 20 files
are relying on math_ldbl_opt.h to include math.h and/or math_private.h
for them, even though none of them necessarily used on a platform that
needs ldbl-opt support.
* sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
math.h or math_private.h.
* sysdeps/alpha/fpu/s_isnan.c
* sysdeps/ieee754/ldbl-128ibm/s_ceill.c
* sysdeps/ieee754/ldbl-128ibm/s_floorl.c
* sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
* sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
* sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
* sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
* sysdeps/ieee754/ldbl-128ibm/s_rintl.c
* sysdeps/ieee754/ldbl-128ibm/s_roundl.c
* sysdeps/ieee754/ldbl-128ibm/s_truncl.c
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
* sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
* sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
* sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
Include math_private.h.
* sysdeps/ieee754/ldbl-64-128/s_finitel.c
* sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
* sysdeps/ieee754/ldbl-64-128/s_isinfl.c
* sysdeps/ieee754/ldbl-64-128/s_isnanl.c
* sysdeps/ieee754/ldbl-64-128/s_signbitl.c
* sysdeps/powerpc/power7/fpu/s_logb.c:
Include math.h and math_private.h.
23 files changed, 55 insertions, 3 deletions
@@ -1,5 +1,33 @@ 2018-03-10 Zack Weinberg <zackw@panix.com> + * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include + math.h or math_private.h. + + * sysdeps/alpha/fpu/s_isnan.c + * sysdeps/ieee754/ldbl-128ibm/s_ceill.c + * sysdeps/ieee754/ldbl-128ibm/s_floorl.c + * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c + * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c + * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c + * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c + * sysdeps/ieee754/ldbl-128ibm/s_rintl.c + * sysdeps/ieee754/ldbl-128ibm/s_roundl.c + * sysdeps/ieee754/ldbl-128ibm/s_truncl.c + * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c + * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: + * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c + * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c + * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: + Include math_private.h. + + * sysdeps/ieee754/ldbl-64-128/s_finitel.c + * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c + * sysdeps/ieee754/ldbl-64-128/s_isinfl.c + * sysdeps/ieee754/ldbl-64-128/s_isnanl.c + * sysdeps/ieee754/ldbl-64-128/s_signbitl.c + * sysdeps/powerpc/power7/fpu/s_logb.c: + Include math.h and math_private.h. + * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual uses of $at in .set noat / .set at. diff --git a/sysdeps/alpha/fpu/s_isnan.c b/sysdeps/alpha/fpu/s_isnan.c index 457bca0..a8b20db 100644 --- a/sysdeps/alpha/fpu/s_isnan.c +++ b/sysdeps/alpha/fpu/s_isnan.c @@ -22,6 +22,7 @@ #define __GI___isnanf not__GI___isnanf #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #undef __isnanf diff --git a/sysdeps/ieee754/ldbl-128ibm/s_ceill.c b/sysdeps/ieee754/ldbl-128ibm/s_ceill.c index 22eddcf..7dcff02 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_ceill.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_ceill.c @@ -18,6 +18,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <float.h> #include <ieee754.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_floorl.c b/sysdeps/ieee754/ldbl-128ibm/s_floorl.c index 2131934..4aae5ae 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_floorl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_floorl.c @@ -18,6 +18,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <float.h> #include <ieee754.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_llrintl.c b/sysdeps/ieee754/ldbl-128ibm/s_llrintl.c index f2f4c19..9d45351 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_llrintl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_llrintl.c @@ -19,6 +19,7 @@ #include <math.h> #include <fenv.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <float.h> #include <ieee754.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_llroundl.c b/sysdeps/ieee754/ldbl-128ibm/s_llroundl.c index 5bfa83c..de6a7b5 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_llroundl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_llroundl.c @@ -19,6 +19,7 @@ #include <math.h> #include <fenv.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <float.h> #include <ieee754.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_lrintl.c b/sysdeps/ieee754/ldbl-128ibm/s_lrintl.c index c2e2f68..05fe7fe 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_lrintl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_lrintl.c @@ -19,6 +19,7 @@ #include <math.h> #include <fenv.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <float.h> #include <ieee754.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_lroundl.c b/sysdeps/ieee754/ldbl-128ibm/s_lroundl.c index 010e8e2..bc8dda4 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_lroundl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_lroundl.c @@ -19,6 +19,7 @@ #include <math.h> #include <fenv.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <float.h> #include <ieee754.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_rintl.c b/sysdeps/ieee754/ldbl-128ibm/s_rintl.c index 9c4514e..73d2b4e 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_rintl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_rintl.c @@ -22,6 +22,7 @@ #include <math.h> #include <fenv.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <float.h> #include <ieee754.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_roundl.c b/sysdeps/ieee754/ldbl-128ibm/s_roundl.c index 5915d53..94a62dc 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_roundl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_roundl.c @@ -21,6 +21,7 @@ when it's coded in C. */ #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <float.h> #include <ieee754.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_truncl.c b/sysdeps/ieee754/ldbl-128ibm/s_truncl.c index a4638b5..a915a01 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_truncl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_truncl.c @@ -18,6 +18,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <float.h> #include <ieee754.h> diff --git a/sysdeps/ieee754/ldbl-64-128/s_finitel.c b/sysdeps/ieee754/ldbl-64-128/s_finitel.c index c0862a7..5a16e6a 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_finitel.c +++ b/sysdeps/ieee754/ldbl-64-128/s_finitel.c @@ -1,3 +1,5 @@ +#include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #undef weak_alias #define weak_alias(n,a) diff --git a/sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c b/sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c index a10b6c3..a14cea4 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c @@ -1,3 +1,5 @@ +#include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #undef weak_alias #define weak_alias(n,a) diff --git a/sysdeps/ieee754/ldbl-64-128/s_isinfl.c b/sysdeps/ieee754/ldbl-64-128/s_isinfl.c index 6dab0e9..94d0b06 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_isinfl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_isinfl.c @@ -1,3 +1,5 @@ +#include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #if !IS_IN (libm) # undef weak_alias diff --git a/sysdeps/ieee754/ldbl-64-128/s_isnanl.c b/sysdeps/ieee754/ldbl-64-128/s_isnanl.c index ad5ecc5..9a7a297 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_isnanl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_isnanl.c @@ -1,3 +1,5 @@ +#include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #if !IS_IN (libm) # undef weak_alias diff --git a/sysdeps/ieee754/ldbl-64-128/s_signbitl.c b/sysdeps/ieee754/ldbl-64-128/s_signbitl.c index 850db73..39e0c34 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_signbitl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_signbitl.c @@ -1,3 +1,5 @@ +#include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #undef weak_alias #define weak_alias(n,a) diff --git a/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h b/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h index af861c1..61ba784 100644 --- a/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h +++ b/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h @@ -36,9 +36,6 @@ #endif #ifndef __ASSEMBLER__ -# include <math.h> -# include <math_private.h> - /* Set temporarily to non-zero if long double should be considered the same as double. */ extern __thread int __no_long_double attribute_tls_model_ie attribute_hidden; diff --git a/sysdeps/powerpc/power7/fpu/s_logb.c b/sysdeps/powerpc/power7/fpu/s_logb.c index 160b933..f7eec8f 100644 --- a/sysdeps/powerpc/power7/fpu/s_logb.c +++ b/sysdeps/powerpc/power7/fpu/s_logb.c @@ -16,6 +16,8 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <libm-alias-double.h> diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c index faa4415..b05414f 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <shlib-compat.h> #include "init-arch.h" diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c index 4ea3864..d432cd0 100644 --- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c +++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <shlib-compat.h> #include "init-arch.h" diff --git a/sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c b/sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c index af103e4..f752514 100644 --- a/sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c +++ b/sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include "init-arch.h" diff --git a/sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c b/sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c index cb771a3..8d05c43 100644 --- a/sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c +++ b/sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <shlib-compat.h> #include "init-arch.h" diff --git a/sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c b/sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c index e46ef68..9bef1fe 100644 --- a/sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c +++ b/sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> #include <math_ldbl_opt.h> #include <shlib-compat.h> #include "init-arch.h" |