gcc/libquadmath/math
Jakub Jelinek 3ac02e6750 libquadmath: Fix up libquadmath/math/sqrtq.c compilation in some powerpc* configurations [PR116007]
My PR114623 change started using soft-fp.h and quad.h for the sqrtq implementation.
Unfortunately, that seems to fail building in some powerpc* configurations, where
TFmode isn't available.
quad.h has:
 #ifndef TFtype
 typedef float TFtype __attribute__ ((mode (TF)));
 #endif
and uses TFtype.  quad.h has:
 /* Define the complex type corresponding to __float128
    ("_Complex __float128" is not allowed) */
 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
 typedef _Complex float __attribute__((mode(TC))) __complex128;
 #else
 typedef _Complex float __attribute__((mode(KC))) __complex128;
 #endif
with the conditional and KCmode use added during porting of libquadmath
to powerpc*, so I've just defined TFtype for powerpc when __LONG_DOUBLE_IEEE128__
isn't defined; I could define it to float __attribute__ ((mode (KF))) but it
seemed easier to just define it to __float128 which should do the same thing.

2024-08-03  Jakub Jelinek  <jakub@redhat.com>

	PR target/116007
	* math/sqrtq.c (TFtype): For PowerPC without __LONG_DOUBLE_IEEE128__
	define to __float128 before including soft-fp.h and quad.h.
2024-08-03 20:37:54 +02:00
..
acoshq.c
acosq.c
asinhq.c
asinq.c
atan2q.c
atanhq.c
atanq.c
cacoshq.c
cacosq.c
casinhq_kernel.c
casinhq.c
casinq.c
catanhq.c
catanq.c
cbrtq.c
ccoshq.c
ceilq.c
cexpq.c
cimagq.c
clog10q.c
clogq.c
complex.c
conjq.c
copysignq.c
coshq.c
cosq_kernel.c
cosq.c
cprojq.c
crealq.c
csinhq.c
csinq.c
csqrtq.c
ctanhq.c
ctanq.c
erfq.c
exp2q.c
expm1q.c
expq_table.h
expq.c
fabsq.c
fdimq.c
finiteq.c
floorq.c
fmaq.c
fmaxq.c
fminq.c
fmodq.c
frexpq.c
hypotq.c
ilogbq.c
isinfq.c
isnanq.c
issignalingq.c
j0q.c
j1q.c
jnq.c
ldexpq.c
lgammaq_neg.c
lgammaq_product.c
lgammaq.c
llrintq.c
llroundq.c
log1pq.c
log2q.c
log10q.c
logbq.c
logq.c
lrintq.c
lroundq.c
modfq.c
nanq.c
nearbyintq.c
nextafterq.c
powq.c
rem_pio2q.c
remainderq.c
remquoq.c
rintq.c
roundq.c
scalblnq.c
scalbnq.c
signbitq.c
sincos_table.c
sincosq_kernel.c
sincosq.c
sinhq.c
sinq_kernel.c
sinq.c
sqrtq.c
tanhq.c
tanq_kernel.c
tanq.c
tgammaq_product.c
tgammaq.c
truncq.c
x2y2m1q.c