[PATCH] Fix compilation under MinGW
Anton Yartsev
anton.yartsev at gmail.com
Mon Mar 25 11:00:57 PDT 2013
Hi all,
tried to build LLVM with MinGW64 for the first time in a long period.
The build ended up with:
llvm[0]: Compiling raw_ostream.cpp for Debug+Asserts build
f:/llvm_COMMON/lib/Support/raw_ostream.cpp: In member function
'llvm::raw_ostream& llvm::raw_ostream::operator<<(double)':
f:/llvm_COMMON/lib/Support/raw_ostream.cpp:230:24: error: '_fpclass' was
not declared in this scope
f:/llvm_COMMON/lib/Support/raw_ostream.cpp:233:15: error: '_FPCLASS_NZ'
was not declared in this scope
As I understand the problem is that MinGW case is not considered
properly: MinGW also defines _WIN32 but has no _fpclass.
Unfortunately I do not know if the code under '#ifdef _WIN32' should be
included in MinGW case or not.
The breaking code was committed as r127872 in early 2011 by chapuni.
Please review and apply (I have no commit access to llvm) if I guessed
correctly and the patch is helpful.
--
Anton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw_ostream.cpp.patch
Type: text/x-diff
Size: 576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130325/13a26a72/attachment.patch>
More information about the llvm-commits
mailing list