glibc/sysdeps/ieee754/ldbl-128
Tulio Magno Quites Machado Filho 1ef9b6e0bf Do not redirect calls to __GI_* symbols, when redirecting to *ieee128
On platforms where long double has IEEE binary128 format as a third
option (initially, only powerpc64le), many exported functions are
redirected to their __*ieee128 equivalents.  This redirection is
provided by installed headers such as stdio-ldbl.h, and is supposed to
work correctly with user code.

However, during the build of glibc, similar redirections are employed,
in internal headers, such as include/stdio.h, in order to avoid extra
PLT entries.  These redirections conflict with the redirections to
__*ieee128, and must be avoided during the build.  This patch protects
the second redirections with a test for __LONG_DOUBLE_USES_FLOAT128, a
new macro that is defined to 1 when functions that deal with long double
typed values reuses the _Float128 implementation (this is currently only
true for powerpc64le).

Tested for powerpc64le, x86_64, and with build-many-glibcs.py.

Co-authored-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
2019-12-27 15:02:10 -03:00
..
bits Do not redirect calls to __GI_* symbols, when redirecting to *ieee128 2019-12-27 15:02:10 -03:00
e_acoshl.c Rename all __ieee754_sqrt(f/l) calls to sqrt(f/l) 2018-03-15 19:21:36 +00:00
e_acosl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_asinl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_atan2l.c Consistently use uintN_t not u_intN_t in libm. 2017-08-03 19:55:04 +00:00
e_atanhl.c Move math_check_force_underflow macros to separate math-underflow.h. 2018-05-10 00:53:04 +00:00
e_coshl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_exp10l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_expl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_fmodl.c Consistently use uintN_t not u_intN_t in libm. 2017-08-03 19:55:04 +00:00
e_gammal_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_hypotl.c Move math_check_force_underflow macros to separate math-underflow.h. 2018-05-10 00:53:04 +00:00
e_ilogbl.c ldbl-128: Rename 'long double' to '_Float128' 2016-08-31 10:38:11 -05:00
e_j0l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_j1l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_jnl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_lgammal_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_log2l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_log10l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_logl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_powl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_rem_pio2l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
e_remainderl.c Consistently use uintN_t not u_intN_t in libm. 2017-08-03 19:55:04 +00:00
e_sinhl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
float128-abi.h Add _Float128 function aliases. 2017-10-18 17:37:18 +00:00
gamma_productl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ieee754.h Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
k_cosl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
k_sincosl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
k_sinl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
k_tanl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ldbl2mpn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lgamma_negl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
lgamma_productl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Makeconfig Add _Float64x function aliases. 2017-11-27 14:16:47 +00:00
Makefile * sysdeps/ieee754/ldbl-128/Makefile: New file. 2007-03-14 17:36:18 +00:00
math_ldbl.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
math-nan-payload-ldouble.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mpn2ldbl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
printf_fphex_macros.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
printf_fphex.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_asinhl.c Move math_check_force_underflow macros to separate math-underflow.h. 2018-05-10 00:53:04 +00:00
s_atanl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_cbrtl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_ceill.c Adjust s_ceilf.c and s_ceill.c regarding code style. 2019-12-11 15:12:21 +01:00
s_copysignl.c Adjust s_copysignl.c regarding code style. 2019-12-11 15:12:21 +01:00
s_cosl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_daddl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_ddivl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_dmull.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_dsubl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_erfl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_expm1l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_f64xaddf128.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_f64xdivf128.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_f64xmulf128.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_f64xsubf128.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_fabsl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_faddl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_fdivl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_finitel.c Consistently use uintN_t not u_intN_t in libm. 2017-08-03 19:55:04 +00:00
s_floorl.c Adjust s_floorf.c and s_floorl.c regarding code style. 2019-12-11 15:12:20 +01:00
s_fma.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_fmal.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_fmull.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_fpclassifyl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_frexpl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_fromfpl_main.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_fromfpl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_fromfpxl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_fsubl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_getpayloadl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_isinfl.c ldbl-128: Use mathx_hidden_def inplace of hidden_def 2017-05-04 14:47:27 -03:00
s_isnanl.c Consistently use uintN_t not u_intN_t in libm. 2017-08-03 19:55:04 +00:00
s_issignalingl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_llrintl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_llroundl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_log1pl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_logbl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_lrintl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_lroundl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_modfl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_nearbyintl.c Adjust s_nearbyintf.c and s_nearbyintl.c regarding code style. 2019-12-11 15:12:19 +01:00
s_nextafterl.c Do not include math-barriers.h in math_private.h. 2018-05-11 15:11:38 +00:00
s_nexttoward.c Do not include math-barriers.h in math_private.h. 2018-05-11 15:11:38 +00:00
s_nexttowardf.c Do not include math-barriers.h in math_private.h. 2018-05-11 15:11:38 +00:00
s_nextupl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_remquol.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_rintl.c Adjust s_rintf.c and s_rintl.c regarding code style. 2019-12-11 15:12:20 +01:00
s_roundevenl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_roundl.c Use GCC builtins for round functions if desired. 2019-12-11 15:12:18 +01:00
s_scalblnl.c Use copysign functions not __copysign functions in glibc libm. 2018-09-27 20:04:48 +00:00
s_scalbnl.c Use copysign functions not __copysign functions in glibc libm. 2018-09-27 20:04:48 +00:00
s_setpayloadl_main.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_setpayloadl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_setpayloadsigl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_signbitl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_sincosl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
s_sinl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_tanhl.c Move math_check_force_underflow macros to separate math-underflow.h. 2018-05-10 00:53:04 +00:00
s_tanl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_totalorderl.c Avoid compat symbols for totalorder in powerpc64le IEEE long double 2019-12-23 16:32:20 -03:00
s_totalordermagl.c Avoid compat symbols for totalorder in powerpc64le IEEE long double 2019-12-23 16:32:20 -03:00
s_truncl.c Use GCC builtins for trunc functions if desired. 2019-12-11 15:12:17 +01:00
s_ufromfpl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
s_ufromfpxl.c Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
strtold_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
t_expl.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
t_sincosl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
x2y2m1l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00