glibc/sysdeps/ieee754/float128
Joseph Myers c38a4bfd59 Move some float128 symbol version definitions.
With support for _Float128 functions on platforms where that type has
the same ABI as long double, as well as on platforms where it is
ABI-distinct, those functions will need to be exported from glibc's
shared libraries at appropriate symbol versions in each case.

This patch avoids duplication of lists of symbols to export by moving
the symbols other than __* to math/Versions and stdlib/Versions.
There, they are conditional on <float128-abi.h> defining
FLOAT128_VERSION and a default version of that header is added that
does not define that macro.  Enabling the float128 function aliases
will then include adding a sysdeps/ieee754/ldbl-128/float128-abi.h
that defines FLOAT128_VERSION to GLIBC_2.27.  Symbols __* remain in
sysdeps/ieee754/float128/Versions; those symbols should be present
only once per floating-point format, not once per type.

Note that if any platforms currently lacking support for a type with
binary128 format get glibc support for such a type in future (whether
only as _Float128, or also as a new long double format), and new libm
functions (present for all types) have been added by then, additional
macros will be needed to allow such functions to get a version of the
form "GLIBC_2.28 if the platform had _Float128 support by then, or the
later version at which that platform had _Float128 support added".
This is not however a preexisting condition, but would have applied
equally to the existing support for _Float128 as an ABI-distinct
type.  New all-type libm functions should just be added to the
appropriate symbol version (currently GLIBC_2.27) for all types, with
such special-case handling for _Float128 versions (and _Float64x as
well in future) waiting until someone actually wants to add support
for _Float128 to an existing platform after a release in which that
platform and a post-2.26 libm function had support but that platform
lacked _Float128 support.

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by this patch.  Also tested in conjunction
with the remaining changes to enable float128 aliases.

	* sysdeps/generic/float128-abi.h: New file.
	* sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
	non-__prefixed symbols to ....
	* math/Versions: ... here.  Include <float128-abi.h>.
	* stdlib/Versions ... and here.  Include <float128-abi.h>
2017-10-16 22:04:42 +00:00
..
e_acosf128.c
e_acoshf128.c
e_asinf128.c
e_atan2f128.c
e_atanhf128.c
e_coshf128.c
e_exp10f128.c
e_expf128.c
e_fmodf128.c
e_gammaf128_r.c
e_hypotf128.c
e_ilogbf128.c
e_j0f128.c
e_j1f128.c
e_jnf128.c
e_lgammaf128_r.c
e_log2f128.c
e_log10f128.c
e_logf128.c
e_powf128.c
e_rem_pio2f128.c
e_remainderf128.c
e_scalbf128.c
e_sinhf128.c
float128_private.h Use libm_alias_ldouble for ldbl-128 functions. 2017-10-06 17:45:05 +00:00
float1282mpn.c float128: Add conversion from float128 to mpn 2017-06-07 17:03:43 -03:00
gamma_productf128.c
ieee754_float128.h
k_cosf128.c
k_sincosf128.c
k_sinf128.c
k_tanf128.c
lgamma_negf128.c
lgamma_productf128.c
Makeconfig
Makefile Add libio-mtsafe flags to the build of strfromf128 2017-06-23 10:31:49 -03:00
mpn2float128.c float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
s_asinhf128.c
s_atanf128.c
s_cbrtf128.c
s_ceilf128.c
s_copysignf128.c
s_cosf128.c
s_erff128.c
s_expm1f128.c
s_fabsf128.c
s_finitef128.c
s_floorf128.c
s_fmaf128.c
s_fpclassifyf128.c
s_frexpf128.c
s_fromfpf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_fromfpxf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_getpayloadf128.c
s_isinff128.c
s_isnanf128.c
s_issignalingf128.c
s_llrintf128.c
s_llroundf128.c
s_log1pf128.c
s_logbf128.c
s_lrintf128.c
s_lroundf128.c
s_modff128.c
s_nearbyintf128.c
s_nextafterf128.c
s_nexttowardf128.c
s_nextupf128.c
s_remquof128.c
s_rintf128.c
s_roundevenf128.c
s_roundf128.c
s_scalblnf128.c
s_scalbnf128.c
s_setpayloadf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_setpayloadsigf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_signbitf128.c float128: Add signbit alternative for old compilers 2017-06-30 18:34:29 -03:00
s_significandf128.c
s_sincosf128.c
s_sinf128.c
s_tanf128.c
s_tanhf128.c
s_totalorderf128.c
s_totalordermagf128.c
s_truncf128.c
s_ufromfpf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
s_ufromfpxf128.c Make more libm functions into weak aliases. 2017-09-14 22:28:53 +00:00
strfromf128.c float128: Add strfromf128 2017-06-07 17:08:21 -03:00
strtod_nan_float128.h float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
strtof128_l.c Fix float128 uses of xlocale.h. 2017-06-22 22:34:49 +00:00
strtof128_nan.c float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
strtof128.c float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
t_sincosf128.c
Versions Move some float128 symbol version definitions. 2017-10-16 22:04:42 +00:00
wcstof128_l.c Mark ____wcsto*_l_internal functions with attribute_hidden [BZ #18822] 2017-10-01 15:09:28 -07:00
wcstof128_nan.c float128: Add strtof128, wcstof128, and related functions. 2017-06-12 14:48:53 -03:00
wcstof128.c Mark ____wcsto*_l_internal functions with attribute_hidden [BZ #18822] 2017-10-01 15:09:28 -07:00
x2y2m1f128.c