]> sourceware.org Git - glibc.git/commitdiff
Make errno-setting libm templates include errno.h.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:39:48 +0000 (22:39 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:39:48 +0000 (22:39 +0000)
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

index af62c056e49e865f92fa78f5a48c4d5b1e613335..b9d30100d9ceaf719be2c981f19de3400a034426 100644 (file)
--- 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.
index ea0e7d4f02f90b66d82b8964d655b6c7accbecce..b1de997a78b656a72aea9441e8c016712277a850 100644 (file)
@@ -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>
index 31f63dbd96e2a34f8d2170ff709fd25f2ca10c7c..276da87b393e7a36e5377f9b2766b78b89ee773b 100644 (file)
@@ -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>
index 41c610245fb18005dd74a39627f9ff973122a2ba..48a1010102fb7fac823032bd9641cd573a39b947 100644 (file)
@@ -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>
index 771af5aff848d08f0bb538e7f1c6ee7e84f09dff..543edaf134eb238d2b2a60384cfa29951c852f71 100644 (file)
@@ -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>
index b912e6e6a5235832830ceb9f0bd0cdeccc782c6c..6b26dd5ddba80e1a9efbc00e853e3ea6c08b0e10 100644 (file)
@@ -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>
index 8f7997dd3509157e89abfd41667a5fb7fee8d733..f63950b55e0a75a2e91a0f31817b8a49be86ebbd 100644 (file)
@@ -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>
index 76577c7fca83e686a864ab1e829025debcf19d61..9c817b60bc3634bf7d848360d19fa8f78ce4666d 100644 (file)
@@ -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>
index c0a4ec5be32f1c4ca62fd5570b621f019f038920..450597a2b7a9099610c1e71ab74fc48890dc9613 100644 (file)
@@ -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>
index 06d7c756610fbfda4a60dff2c96a797a25b3fbb2..271f2aad6770c37be7730510e149999459ca5b12 100644 (file)
@@ -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>
index 9298add7567db1fe274396ccc01369a7a6ebd96a..f29ecb1e9ac6bafe96b7ed21de74093064dd0885 100644 (file)
@@ -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>
index f49874fa10037c97fc3210ef092fc2af9d76d5b7..92b69583675e8ab71f81a323112a670ced35e9cd 100644 (file)
@@ -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>
index 6d1058f7e0875996bc1ed62a4f472e624193b2ce..47dcbcd3811f0197fce2832756d869ec11372f46 100644 (file)
@@ -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>
index fd138359be2da6e40004110da42b6cf4a551200e..32912e278fc01e3bbd73c6e7732fa69dacfebe1e 100644 (file)
@@ -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>
index 977d1b5fc489b6914638af59316a3e1e67d35a29..5610db167c93b49b9d2f691698faedb55d979ed0 100644 (file)
@@ -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>
index a60413d937467284352e07b512c7101c2ed78fa8..13829af382d7ec3f0b99bbad94e6c1490d870c3f 100644 (file)
@@ -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>
index 92735f03406543cfebc84747ba67eecffdcf6fe4..6cdaf3616f2502bef180456cb9cc1f04f4841925 100644 (file)
@@ -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>
index a80b287da61f5d34eedad35aea377f7ae769f854..7bce7aec1bafd79d2f37c7408bec0b46e391ab46 100644 (file)
@@ -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>
index 3f9830c1964f45fc7079a15cf2b38799d7f6f920..f1d05347148a092fb0deb4bdbd1ea2729751212e 100644 (file)
@@ -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>
index 50431b985f4779d3c345fed4f8f149c01589d2b2..19c25fb88f7f32f50604dc08d8f4dad8ccc107c7 100644 (file)
@@ -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>
index 4ecf10d360d38b3579837133bf16f501be0580ae..aba43d63aee75792636401508cd4df22846d1d42 100644 (file)
@@ -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>
index 7a147ded9d2d0d5029dcbd37faf89a5a10ec074e..b364e27002f8e297f4177392afdf7f17f50f3280 100644 (file)
@@ -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>
index f97074f0620a779564247a77a7752e12cad82151..5fae302382d10e9b05df2665c9cb05126cd62f02 100644 (file)
@@ -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>
index 277a8377e3324710ec42e3221f0d4410871c5c66..017dbeba095adedce3a9af22a2ffe0ecdb22c6ee 100644 (file)
@@ -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>
This page took 0.210734 seconds and 5 git commands to generate.