wok-next diff llvm/stuff/patches/std.patch @ rev 20498
Unsuccessful fixings (just to totally synchronize wok-hg with wok): assaultcube, astromenace, chocolate-doom, dmraid, enigma, gpm, zsnes.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 14 17:27:57 2018 +0200 (2018-03-14) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/llvm/stuff/patches/std.patch Wed Mar 14 17:27:57 2018 +0200 1.3 @@ -0,0 +1,29 @@ 1.4 +${src}/lib/Support/NativeFormatting.cpp: In function 'void llvm::write_double(llvm::raw_ostream&, double, llvm::FloatStyle, llvm::Optional<long unsigned int>)': 1.5 +${src}/lib/Support/NativeFormatting.cpp:166:12: error: '__builtin_isnan' is not a member of 'std' 1.6 + if (std::isnan(N)) { 1.7 + ^ 1.8 +${src}/lib/Support/NativeFormatting.cpp:166:12: note: suggested alternative: 1.9 +<built-in>: note: '__builtin_isnan' 1.10 +${src}/lib/Support/NativeFormatting.cpp:169:19: error: '__builtin_isinf_sign' is not a member of 'std' 1.11 + } else if (std::isinf(N)) { 1.12 + ^ 1.13 +${src}/lib/Support/NativeFormatting.cpp:169:19: note: suggested alternative: 1.14 +<built-in>: note: '__builtin_isinf_sign' 1.15 +make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:1263: lib/Support/CMakeFiles/LLVMSupport.dir/NativeFormatting.cpp.o] Error 1 1.16 +make[1]: *** [CMakeFiles/Makefile2:545: lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2 1.17 + 1.18 +--- a/lib/Support/NativeFormatting.cpp 1.19 ++++ b/lib/Support/NativeFormatting.cpp 1.20 +@@ -163,10 +163,10 @@ 1.21 + Optional<size_t> Precision) { 1.22 + size_t Prec = Precision.getValueOr(getDefaultPrecision(Style)); 1.23 + 1.24 +- if (std::isnan(N)) { 1.25 ++ if (isnan(N)) { 1.26 + S << "nan"; 1.27 + return; 1.28 +- } else if (std::isinf(N)) { 1.29 ++ } else if (isinf(N)) { 1.30 + S << "INF"; 1.31 + return; 1.32 + }