[flang] Restrict __float128 support for some build configurations.
authorSlava Zakharin <szakharin@nvidia.com>
Tue, 18 Oct 2022 00:48:05 +0000 (17:48 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Tue, 18 Oct 2022 16:58:05 +0000 (09:58 -0700)
commit51962690d8879a13c3ec90e3d0d82b0151710aab
treecc4b563fc63b04ea91def53ffc8bc777f2234008
parentdf92b05f1ba52b0e63f1f5e8e714b7211cfaec6e
[flang] Restrict __float128 support for some build configurations.

This change is intended to resolve build issues reported in D134503.
A compiler supporting __float128 must define either __FLOAT128__ or
__SIZEOF_FLOAT128__ (or both). Additional check for _LIBCPP_VERSION
was added to disable __float128 for builds with libc++, because
__float128 support is incomplete there.

Differential Revision: https://reviews.llvm.org/D136121
flang/include/flang/Runtime/float128.h