wok-next view 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 source
1 ${src}/lib/Support/NativeFormatting.cpp: In function 'void llvm::write_double(llvm::raw_ostream&, double, llvm::FloatStyle, llvm::Optional<long unsigned int>)':
2 ${src}/lib/Support/NativeFormatting.cpp:166:12: error: '__builtin_isnan' is not a member of 'std'
3 if (std::isnan(N)) {
4 ^
5 ${src}/lib/Support/NativeFormatting.cpp:166:12: note: suggested alternative:
6 <built-in>: note: '__builtin_isnan'
7 ${src}/lib/Support/NativeFormatting.cpp:169:19: error: '__builtin_isinf_sign' is not a member of 'std'
8 } else if (std::isinf(N)) {
9 ^
10 ${src}/lib/Support/NativeFormatting.cpp:169:19: note: suggested alternative:
11 <built-in>: note: '__builtin_isinf_sign'
12 make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:1263: lib/Support/CMakeFiles/LLVMSupport.dir/NativeFormatting.cpp.o] Error 1
13 make[1]: *** [CMakeFiles/Makefile2:545: lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
15 --- a/lib/Support/NativeFormatting.cpp
16 +++ b/lib/Support/NativeFormatting.cpp
17 @@ -163,10 +163,10 @@
18 Optional<size_t> Precision) {
19 size_t Prec = Precision.getValueOr(getDefaultPrecision(Style));
21 - if (std::isnan(N)) {
22 + if (isnan(N)) {
23 S << "nan";
24 return;
25 - } else if (std::isinf(N)) {
26 + } else if (isinf(N)) {
27 S << "INF";
28 return;
29 }