[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp
Jeff Cohen
jeffc at jolt-lang.org
Mon Apr 17 10:55:57 PDT 2006
Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.259 -> 1.260
---
Log message:
Add checks for __OpenBSD__.
---
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.259 llvm/lib/Target/CBackend/Writer.cpp:1.260
--- llvm/lib/Target/CBackend/Writer.cpp:1.259 Thu Mar 23 12:08:29 2006
+++ llvm/lib/Target/CBackend/Writer.cpp Mon Apr 17 12:55:40 2006
@@ -813,7 +813,7 @@
<< "extern void *__builtin_alloca(unsigned int);\n"
<< "#endif\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
- << "#elif defined(__FreeBSD__)\n"
+ << "#elif defined(__FreeBSD__) || defined(__OpenBSD__)\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
<< "#elif !defined(_MSC_VER)\n"
<< "#include <alloca.h>\n"
More information about the llvm-commits
mailing list