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

Melanie Blower via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 30 13:30:01 PST 2017


mibintc created this revision.
mibintc added a project: clang.

Fedora27 is using a new version of glibc that refers to the _Float128 type. This patch adds that name as an alias to __float128. I also added some predefined macro values for the digits, mantissa, epilon, etc (FloatMacros).  For the test case, I copied an existing __float128 test.  This functionality needs work long term, but it should be sufficient to tread water for a while.  At Intel we have test servers running our LLVM compiler with various open source workloads, the server has been upgraded to Fedora27 so many workloads are failing due to _Float128. What do you think?


https://reviews.llvm.org/D40673

Files:
  include/clang/Basic/TokenKinds.def
  lib/Frontend/InitPreprocessor.cpp
  test/Preprocessor/cuda-types.cu
  test/Sema/_Float128.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40673.124999.patch
Type: text/x-patch
Size: 7189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171130/aef6d8bc/attachment-0001.bin>


More information about the cfe-commits mailing list