Make errno-setting libm templates include errno.h.
commit46d2e49c49165c09d8ebf555e56d74d063102342
authorJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:39:48 +0000 (22 22:39 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:39:48 +0000 (22 22:39 +0000)
tree46bd640515d66f3af09ad2fc3fdb93f819fef874
parent33711da4e90f2904aec46544c7344cd08d07c56a
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.
24 files changed:
ChangeLog
math/w_acos_template.c
math/w_acosh_template.c
math/w_asin_template.c
math/w_atanh_template.c
math/w_cosh_template.c
math/w_exp10_template.c
math/w_exp2_template.c
math/w_exp_template.c
math/w_fmod_template.c
math/w_hypot_template.c
math/w_j0_template.c
math/w_j1_template.c
math/w_jn_template.c
math/w_lgamma_r_template.c
math/w_lgamma_template.c
math/w_log10_template.c
math/w_log2_template.c
math/w_log_template.c
math/w_pow_template.c
math/w_remainder_template.c
math/w_sinh_template.c
math/w_sqrt_template.c
math/w_tgamma_template.c