[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 2 11:54:14 PDT 2006
Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.263 -> 1.264
---
Log message:
Add mingw support, patch contributed by Anton
---
Diffs of the changes: (+1 -1)
Writer.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.263 llvm/lib/Target/CBackend/Writer.cpp:1.264
--- llvm/lib/Target/CBackend/Writer.cpp:1.263 Wed May 31 17:26:11 2006
+++ llvm/lib/Target/CBackend/Writer.cpp Fri Jun 2 13:54:01 2006
@@ -833,7 +833,7 @@
static void generateCompilerSpecificCode(std::ostream& Out) {
// Alloca is hard to get, and we don't want to include stdlib.h here.
Out << "/* get a declaration for alloca */\n"
- << "#if defined(__CYGWIN__)\n"
+ << "#if defined(__CYGWIN__) || defined(__MINGW32__)\n"
<< "extern void *_alloca(unsigned long);\n"
<< "#define alloca(x) _alloca(x)\n"
<< "#elif defined(__APPLE__)\n"
More information about the llvm-commits
mailing list