summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-06-22 22:39:48 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-06-22 22:39:48 +0000
commit46d2e49c49165c09d8ebf555e56d74d063102342 (patch)
tree46bd640515d66f3af09ad2fc3fdb93f819fef874
parent33711da4e90f2904aec46544c7344cd08d07c56a (diff)
downloadglibc-46d2e49c49165c09d8ebf555e56d74d063102342.tar.gz
Make errno-setting libm templates include errno.h.
Various type-generic libm wrapper templates, as used for float128, set errno but do not include errno.h. I presume they must get an implicit include from some internal header on powerpc64le; they don't get such an implicit include on x86_64. This patch adds the missing includes of errno.h to each such wrapper. Tested for x86_64 (in conjunction with float128 patches). * math/w_acos_template.c [__USE_WRAPPER_TEMPLATE]: Include <errno.h>. * math/w_acosh_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_asin_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_atanh_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_cosh_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_exp10_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_exp2_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_exp_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_fmod_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_hypot_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_j0_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_j1_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_jn_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_lgamma_r_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_lgamma_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_log10_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_log2_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_log_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_pow_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_remainder_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_sinh_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_sqrt_template.c [__USE_WRAPPER_TEMPLATE]: Likewise. * math/w_tgamma_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
-rw-r--r--ChangeLog25
-rw-r--r--math/w_acos_template.c1
-rw-r--r--math/w_acosh_template.c1
-rw-r--r--math/w_asin_template.c1
-rw-r--r--math/w_atanh_template.c1
-rw-r--r--math/w_cosh_template.c1
-rw-r--r--math/w_exp10_template.c1
-rw-r--r--math/w_exp2_template.c1
-rw-r--r--math/w_exp_template.c1
-rw-r--r--math/w_fmod_template.c1
-rw-r--r--math/w_hypot_template.c1
-rw-r--r--math/w_j0_template.c1
-rw-r--r--math/w_j1_template.c1
-rw-r--r--math/w_jn_template.c1
-rw-r--r--math/w_lgamma_r_template.c1
-rw-r--r--math/w_lgamma_template.c1
-rw-r--r--math/w_log10_template.c1
-rw-r--r--math/w_log2_template.c1
-rw-r--r--math/w_log_template.c1
-rw-r--r--math/w_pow_template.c1
-rw-r--r--math/w_remainder_template.c1
-rw-r--r--math/w_sinh_template.c1
-rw-r--r--math/w_sqrt_template.c1
-rw-r--r--math/w_tgamma_template.c1
24 files changed, 48 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index af62c056e4..b9d30100d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,30 @@
2017-06-22 Joseph Myers <joseph@codesourcery.com>
+ * math/w_acos_template.c [__USE_WRAPPER_TEMPLATE]: Include
+ <errno.h>.
+ * math/w_acosh_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_asin_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_atanh_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_cosh_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_exp10_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_exp2_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_exp_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_fmod_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_hypot_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_j0_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_j1_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_jn_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_lgamma_r_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_lgamma_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_log10_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_log2_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_log_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_pow_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_remainder_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_sinh_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_sqrt_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+ * math/w_tgamma_template.c [__USE_WRAPPER_TEMPLATE]: Likewise.
+
* sysdeps/ieee754/float128/strtof128_l.c: Include
<bits/types/locale_t.h> instead of <xlocale.h>.
* sysdeps/ieee754/float128/wcstof128.c: Likewise.
diff --git a/math/w_acos_template.c b/math/w_acos_template.c
index ea0e7d4f02..b1de997a78 100644
--- a/math/w_acos_template.c
+++ b/math/w_acos_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_acosh_template.c b/math/w_acosh_template.c
index 31f63dbd96..276da87b39 100644
--- a/math/w_acosh_template.c
+++ b/math/w_acosh_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_asin_template.c b/math/w_asin_template.c
index 41c610245f..48a1010102 100644
--- a/math/w_asin_template.c
+++ b/math/w_asin_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_atanh_template.c b/math/w_atanh_template.c
index 771af5aff8..543edaf134 100644
--- a/math/w_atanh_template.c
+++ b/math/w_atanh_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_cosh_template.c b/math/w_cosh_template.c
index b912e6e6a5..6b26dd5ddb 100644
--- a/math/w_cosh_template.c
+++ b/math/w_cosh_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_exp10_template.c b/math/w_exp10_template.c
index 8f7997dd35..f63950b55e 100644
--- a/math/w_exp10_template.c
+++ b/math/w_exp10_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_exp2_template.c b/math/w_exp2_template.c
index 76577c7fca..9c817b60bc 100644
--- a/math/w_exp2_template.c
+++ b/math/w_exp2_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_exp_template.c b/math/w_exp_template.c
index c0a4ec5be3..450597a2b7 100644
--- a/math/w_exp_template.c
+++ b/math/w_exp_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_fmod_template.c b/math/w_fmod_template.c
index 06d7c75661..271f2aad67 100644
--- a/math/w_fmod_template.c
+++ b/math/w_fmod_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_hypot_template.c b/math/w_hypot_template.c
index 9298add756..f29ecb1e9a 100644
--- a/math/w_hypot_template.c
+++ b/math/w_hypot_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_j0_template.c b/math/w_j0_template.c
index f49874fa10..92b6958367 100644
--- a/math/w_j0_template.c
+++ b/math/w_j0_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_j1_template.c b/math/w_j1_template.c
index 6d1058f7e0..47dcbcd381 100644
--- a/math/w_j1_template.c
+++ b/math/w_j1_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_jn_template.c b/math/w_jn_template.c
index fd138359be..32912e278f 100644
--- a/math/w_jn_template.c
+++ b/math/w_jn_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_lgamma_r_template.c b/math/w_lgamma_r_template.c
index 977d1b5fc4..5610db167c 100644
--- a/math/w_lgamma_r_template.c
+++ b/math/w_lgamma_r_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_lgamma_template.c b/math/w_lgamma_template.c
index a60413d937..13829af382 100644
--- a/math/w_lgamma_template.c
+++ b/math/w_lgamma_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_log10_template.c b/math/w_log10_template.c
index 92735f0340..6cdaf3616f 100644
--- a/math/w_log10_template.c
+++ b/math/w_log10_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_log2_template.c b/math/w_log2_template.c
index a80b287da6..7bce7aec1b 100644
--- a/math/w_log2_template.c
+++ b/math/w_log2_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_log_template.c b/math/w_log_template.c
index 3f9830c196..f1d0534714 100644
--- a/math/w_log_template.c
+++ b/math/w_log_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_pow_template.c b/math/w_pow_template.c
index 50431b985f..19c25fb88f 100644
--- a/math/w_pow_template.c
+++ b/math/w_pow_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_remainder_template.c b/math/w_remainder_template.c
index 4ecf10d360..aba43d63ae 100644
--- a/math/w_remainder_template.c
+++ b/math/w_remainder_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_sinh_template.c b/math/w_sinh_template.c
index 7a147ded9d..b364e27002 100644
--- a/math/w_sinh_template.c
+++ b/math/w_sinh_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_sqrt_template.c b/math/w_sqrt_template.c
index f97074f062..5fae302382 100644
--- a/math/w_sqrt_template.c
+++ b/math/w_sqrt_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>
diff --git a/math/w_tgamma_template.c b/math/w_tgamma_template.c
index 277a8377e3..017dbeba09 100644
--- a/math/w_tgamma_template.c
+++ b/math/w_tgamma_template.c
@@ -21,6 +21,7 @@
for each floating-point type. */
#if __USE_WRAPPER_TEMPLATE
+# include <errno.h>
# include <fenv.h>
# include <math.h>
# include <math_private.h>