From patchwork Thu Jun 22 22:40:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 21213 Received: (qmail 82998 invoked by alias); 22 Jun 2017 22:40:52 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 82762 invoked by uid 89); 22 Jun 2017 22:40:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Thu, 22 Jun 2017 22:40:37 +0000 From: Joseph Myers To: Subject: Make errno-setting libm templates include errno.h [committed] Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) 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). Committed. 2017-06-22 Joseph Myers * math/w_acos_template.c [__USE_WRAPPER_TEMPLATE]: Include . * 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. diff --git a/math/w_acos_template.c b/math/w_acos_template.c index ea0e7d4..b1de997 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 # include # include # include diff --git a/math/w_acosh_template.c b/math/w_acosh_template.c index 31f63db..276da87 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 # include # include # include diff --git a/math/w_asin_template.c b/math/w_asin_template.c index 41c6102..48a1010 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 # include # include # include diff --git a/math/w_atanh_template.c b/math/w_atanh_template.c index 771af5a..543edaf 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 # include # include # include diff --git a/math/w_cosh_template.c b/math/w_cosh_template.c index b912e6e..6b26dd5 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 # include # include # include diff --git a/math/w_exp10_template.c b/math/w_exp10_template.c index 8f7997d..f63950b 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 # include # include # include diff --git a/math/w_exp2_template.c b/math/w_exp2_template.c index 76577c7..9c817b6 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 # include # include # include diff --git a/math/w_exp_template.c b/math/w_exp_template.c index c0a4ec5..450597a 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 # include # include # include diff --git a/math/w_fmod_template.c b/math/w_fmod_template.c index 06d7c75..271f2aa 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 # include # include # include diff --git a/math/w_hypot_template.c b/math/w_hypot_template.c index 9298add..f29ecb1 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 # include # include # include diff --git a/math/w_j0_template.c b/math/w_j0_template.c index f49874f..92b6958 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 # include # include # include diff --git a/math/w_j1_template.c b/math/w_j1_template.c index 6d1058f..47dcbcd 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 # include # include # include diff --git a/math/w_jn_template.c b/math/w_jn_template.c index fd13835..32912e2 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 # include # include # include diff --git a/math/w_lgamma_r_template.c b/math/w_lgamma_r_template.c index 977d1b5..5610db1 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 # include # include # include diff --git a/math/w_lgamma_template.c b/math/w_lgamma_template.c index a60413d..13829af 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 # include # include # include diff --git a/math/w_log10_template.c b/math/w_log10_template.c index 92735f0..6cdaf36 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 # include # include # include diff --git a/math/w_log2_template.c b/math/w_log2_template.c index a80b287..7bce7ae 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 # include # include # include diff --git a/math/w_log_template.c b/math/w_log_template.c index 3f9830c..f1d0534 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 # include # include # include diff --git a/math/w_pow_template.c b/math/w_pow_template.c index 50431b9..19c25fb 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 # include # include # include diff --git a/math/w_remainder_template.c b/math/w_remainder_template.c index 4ecf10d..aba43d6 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 # include # include # include diff --git a/math/w_sinh_template.c b/math/w_sinh_template.c index 7a147de..b364e27 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 # include # include # include diff --git a/math/w_sqrt_template.c b/math/w_sqrt_template.c index f97074f..5fae302 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 # include # include # include diff --git a/math/w_tgamma_template.c b/math/w_tgamma_template.c index 277a837..017dbeb 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 # include # include # include