[PATCH] D40673: Add _Float128 as alias to __float128 to enable compilations on Fedora27/glibc2-26

Szabolcs Nagy via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 11 03:13:29 PST 2018


nsz added a comment.

if clang wants to provide _Float128 then the f128 constant suffix (specified by TS18661-3) and __builtin_inff128, __builtin_nanf128, __builtin_nansf128, __builtin_huge_valf128 (gcc builtins required by math.h) need to be supported too.

as this patch is committed clang is broken (cannot use glibc headers) on any target where long double is quad precision (aarch64, mips64, s390, sparc64, riscv64) even if glibc fixes the >=gcc-7 check to something that works for clang: either the _Float128 typedef conflicts with the definition by clang or the suffixes/builtins are missing.


Repository:
  rC Clang

https://reviews.llvm.org/D40673





More information about the cfe-commits mailing list