From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id E81FD3858296; Wed, 30 Aug 2023 12:41:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E81FD3858296 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693399297; bh=ImOjHohGJ7skTArd1qn9MiCSWwSAI1p0MyqVjprt2fU=; h=From:To:Subject:Date:From; b=CLy+albQ/MD8JXZ66KfihXdJ4AuNqTznbTzhQ2ZhkUVg4nWEa88LMpLYrCBSM9k1A s5gVCMD5W3eS3CtNh9WFbDsJ9KqY60IdcrlhTvaj2mH2UpNM8VPkH6NKakSvvTjTAe zXMx7UVvibpmadlvwOskSlhF6ng1C2s/+qcddP/4= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 24e3cc1a367850e9f0add0b6bb277d3ca68253d3 X-Git-Newrev: a2ce0d3ca724249df74c2f715f58b4ac738b2655 Message-Id: <20230830124137.E81FD3858296@sourceware.org> Date: Wed, 30 Aug 2023 12:41:37 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a2ce0d3ca724249df74c2f715f58b4ac738b2655 commit a2ce0d3ca724249df74c2f715f58b4ac738b2655 Author: Adhemerval Zanella Date: Tue Aug 2 15:42:14 2022 -0300 math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES If compiler does not support __USE_EXTERN_INLINES we need to route fabsf128 call to an internal symbol. Diff: --- include/math.h | 11 ++++++++--- sysdeps/ieee754/float128/s_fabsf128.c | 3 +++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/include/math.h b/include/math.h index fa11a710a6..262c302728 100644 --- a/include/math.h +++ b/include/math.h @@ -109,9 +109,11 @@ __issignalingf (float x) # if __HAVE_DISTINCT_FLOAT128 +# ifdef __USE_EXTERN_INLINES + /* __builtin_isinf_sign is broken in GCC < 7 for float128. */ -# if ! __GNUC_PREREQ (7, 0) -# include +# if ! __GNUC_PREREQ (7, 0) +# include extern inline int __isinff128 (_Float128 x) { @@ -121,13 +123,16 @@ __isinff128 (_Float128 x) lx |= -lx; return ~(lx >> 63) & (hx >> 62); } -# endif +# endif extern inline _Float128 fabsf128 (_Float128 x) { return __builtin_fabsf128 (x); } +# else +libm_hidden_proto (fabsf128) +# endif # endif # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0) diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c index 79ba47c3fd..d877b0214f 100644 --- a/sysdeps/ieee754/float128/s_fabsf128.c +++ b/sysdeps/ieee754/float128/s_fabsf128.c @@ -1,2 +1,5 @@ #include #include "../ldbl-128/s_fabsl.c" +#ifndef __USE_EXTERN_INLINES +libm_hidden_def (fabsf128) +#endif