[PATCH] D111382: Support _Float128 and F128 literal in C mode

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 8 13:50:58 PDT 2021


MaskRay added a subscriber: zatrazz.
MaskRay added a comment.

This is to make more glibc files compilable with Clang. (@zatrazz)

In D111382#3052514 <https://reviews.llvm.org/D111382#3052514>, @hubert.reinterpretcast wrote:

> Are we sure this is wise? We know that any future standard C++ type can't be the same as `__float128` (without changing the latter) because `__float128` mangles the same as 128-bit `long double`. So by making `__float128` the same as `_Float128` in C, we're causing the relationship between `__float128` and the "corresponding" standard types to differ between C and C++.

No, but it's hard to change now. Introducing a GCC incompatible scheme probably does more harm than being compatible with them now...

> I know GCC went in the direction that has this complication. Do we know whether they figured their way out?




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111382/new/

https://reviews.llvm.org/D111382



More information about the cfe-commits mailing list