glibc/soft-fp
Joseph Myers 0d2163ebf2 Make powerpc-nofpu __sqrtsf2, __sqrtdf2 compat symbols (bug 18473).
powerpc-nofpu libc exports __sqrtsf2 and __sqrtdf2 symbols.  The
export of these soft-fp symbols is a mistake; they aren't part of the
libgcc interface and GCC will never generate code that calls them.
This patch makes them into compat symbols (no code built for static
libc), moving their sources from the generic soft-fp sources to
sysdeps/powerpc/nofpu (the underlying soft-fp FP_SQRT functionality
remains of use to implement actual sqrt public interfaces, such as
sqrtl / sqrtf128 for which it is used on various platforms, but
__sqrt[sdt]f2 are not such interfaces).

Tested with build-many-glibcs.py for relevant platforms.

	[BZ #18473]
	* soft-fp/sqrttf2.c: Remove file.
	* soft-fp/sqrtdf2.c: Move to ....
	* sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
	<shlib-compat.h>.
	(__sqrtdf2): Make conditional on
	[SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
	symbol.
	* soft-fp/sqrtsf2.c: Move to ....
	* sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
	<shlib-compat.h>.
	(__sqrtsf2): Make conditional on
	[SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
	symbol.
	* soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
	(gcc-double-routines): Remove sqrtdf2.
	(gcc-quad-routines): Remove sqrttf2.
	* sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
	Do not filter out sqrtsf2 and sqrtdf2.
	* sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
	(sysdep_routines): Add sqrtsf2 and sqrtdf2.
2018-06-01 17:25:12 +00:00
..
adddf3.c
addsf3.c
addtf3.c
divdf3.c
divsf3.c
divtf3.c
double.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
eqdf2.c
eqsf2.c
eqtf2.c
extenddftf2.c
extended.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
extendhftf2.c
extendsfdf2.c
extendsftf2.c
extendxftf2.c
fixdfdi.c
fixdfsi.c
fixdfti.c
fixhfti.c
fixsfdi.c
fixsfsi.c
fixsfti.c
fixtfdi.c
fixtfsi.c
fixtfti.c
fixunsdfdi.c
fixunsdfsi.c
fixunsdfti.c
fixunshfti.c
fixunssfdi.c
fixunssfsi.c
fixunssfti.c
fixunstfdi.c
fixunstfsi.c
fixunstfti.c
floatdidf.c
floatdisf.c
floatditf.c
floatsidf.c
floatsisf.c
floatsitf.c
floattidf.c
floattihf.c
floattisf.c
floattitf.c
floatundidf.c
floatundisf.c
floatunditf.c
floatunsidf.c
floatunsisf.c
floatunsitf.c
floatuntidf.c
floatuntihf.c
floatuntisf.c
floatuntitf.c
gedf2.c
gesf2.c
getf2.c
half.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
ledf2.c
lesf2.c
letf2.c
Makefile Make powerpc-nofpu __sqrtsf2, __sqrtdf2 compat symbols (bug 18473). 2018-06-01 17:25:12 +00:00
muldf3.c
mulsf3.c
multf3.c
negdf2.c
negsf2.c
negtf2.c
op-1.h
op-2.h
op-4.h
op-8.h
op-common.h Add narrowing multiply functions. 2018-05-16 00:05:28 +00:00
quad.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
single.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
soft-fp.h
subdf3.c
subsf3.c
subtf3.c
testit.c
truncdfsf2.c
trunctfdf2.c
trunctfhf2.c
trunctfsf2.c
trunctfxf2.c
unorddf2.c
unordsf2.c
unordtf2.c