File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5454/* Define pure C CFloat128Type and CFloat128ComplexType. */
5555#if LDBL_MANT_DIG == 113
5656typedef long double CFloat128Type ;
57+ #ifndef __cplusplus
5758typedef long double _Complex CFloat128ComplexType ;
59+ #endif
5860#elif HAS_FLOAT128
5961typedef __float128 CFloat128Type ;
62+
63+ #ifndef __cplusplus
6064/*
6165 * Use mode() attribute supported by GCC and Clang.
6266 * Adjust it for other compilers as needed.
@@ -66,5 +70,6 @@ typedef _Complex float __attribute__((mode(TC))) CFloat128ComplexType;
6670#else
6771typedef _Complex float __attribute__((mode (KC ))) CFloat128ComplexType ;
6872#endif
73+ #endif // __cplusplus
6974#endif
7075#endif /* FORTRAN_COMMON_FLOAT128_H_ */
Original file line number Diff line number Diff line change 1010
1111namespace Fortran ::runtime {
1212extern " C" {
13-
13+ #if 0
14+ // FIXME: temporarily disabled. Need to add pure C entry point
15+ // using C _Complex ABI.
1416#if LDBL_MANT_DIG == 113 || HAS_FLOAT128
1517// NOTE: Flang calls the runtime APIs using C _Complex ABI
1618CppTypeFor<TypeCategory::Real, 16> RTDEF(CAbsF128)(CFloat128ComplexType x) {
1719 return CAbs<RTNAME(CAbsF128)>::invoke(x);
1820}
1921#endif
20-
22+ # endif
2123} // extern "C"
2224} // namespace Fortran::runtime
Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ DEFINE_FALLBACK(Asinh)
6161DEFINE_FALLBACK (Atan)
6262DEFINE_FALLBACK (Atan2)
6363DEFINE_FALLBACK (Atanh)
64- DEFINE_FALLBACK (CAbs)
6564DEFINE_FALLBACK (Ceil)
6665DEFINE_FALLBACK (Cos)
6766DEFINE_FALLBACK (Cosh)
@@ -163,7 +162,6 @@ DEFINE_SIMPLE_ALIAS(Asinh, asinhq)
163162DEFINE_SIMPLE_ALIAS(Atan, atanq)
164163DEFINE_SIMPLE_ALIAS(Atan2, atan2q)
165164DEFINE_SIMPLE_ALIAS(Atanh, atanhq)
166- DEFINE_SIMPLE_ALIAS(CAbs, cabsq)
167165DEFINE_SIMPLE_ALIAS(Ceil, ceilq)
168166DEFINE_SIMPLE_ALIAS(Cos, cosq)
169167DEFINE_SIMPLE_ALIAS(Cosh, coshq)
You can’t perform that action at this time.
0 commit comments