[llvm-commits] [PATCH] Fix for broken llvm build for Windows

Viktor Kutuzov vkutuzov at accesssoftek.com
Thu Jun 25 12:16:17 PDT 2009


Hello everyone,

The llvm build with MinGW fails with the following error:

llvm[4]: Compiling ARMAsmPrinter.cpp for Release build
C:/msys/1.0/home/src/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp: In member function `void 
<unnamed>::ARMAsmPrinter::printBitfieldInvMaskImmOperand(const llvm::MachineInstr*, int)':
C:/msys/1.0/home/src/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp:640: error: `ffs' was not declared in this scope
C:/msys/1.0/home/src/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp:640: warning: unused variable 'ffs'
make[4]: *** [/home/build-arm-elf/llvm/lib/Target/ARM/AsmPrinter/Release/ARMAsmPrinter.o] Error 1

It's better to use llvm CountTrailingZeros_32 instead.

Please find the patch attached.

Best regards,
Viktor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ARMASMPrinter.diff
Type: application/octet-stream
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090625/ac7f51b6/attachment.obj>


More information about the llvm-commits mailing list