[libcxx-commits] [PATCH] D81438: [libc++] Work around gcc/Power9 bug in `include/thread`

Joel E. Denny via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 10 09:58:53 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd9a42ec98adc: [libc++] Work around gcc/Power9 bug in `include/thread` (authored by jdenny).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81438

Files:
  libcxx/include/thread


Index: libcxx/include/thread
===================================================================
--- libcxx/include/thread
+++ libcxx/include/thread
@@ -365,9 +365,9 @@
     {
 #if defined(_LIBCPP_COMPILER_GCC) && (__powerpc__ || __POWERPC__)
     //  GCC's long double const folding is incomplete for IBM128 long doubles.
-        _LIBCPP_CONSTEXPR duration<long double> _Max = nanoseconds::max();
-#else
         _LIBCPP_CONSTEXPR duration<long double> _Max = duration<long double>(ULLONG_MAX/1000000000ULL) ;
+#else
+        _LIBCPP_CONSTEXPR duration<long double> _Max = nanoseconds::max();
 #endif
         nanoseconds __ns;
         if (__d < _Max)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81438.269883.patch
Type: text/x-patch
Size: 655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200610/1bcf20d7/attachment-0001.bin>


More information about the libcxx-commits mailing list