[llvm-commits] CVS: llvm/lib/Target/CBackend/CBackend.cpp
Jeff Cohen
jeffc at jolt-lang.org
Wed Mar 28 16:08:54 PDT 2007
Changes in directory llvm/lib/Target/CBackend:
CBackend.cpp updated: 1.329 -> 1.330
---
Log message:
Fix C Backend to generate code that works with Microsoft C for the benefit of
front ends that do not depend on the GCC runtime (someday...).
---
Diffs of the changes: (+4 -1)
CBackend.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/CBackend/CBackend.cpp
diff -u llvm/lib/Target/CBackend/CBackend.cpp:1.329 llvm/lib/Target/CBackend/CBackend.cpp:1.330
--- llvm/lib/Target/CBackend/CBackend.cpp:1.329 Sat Mar 3 10:33:33 2007
+++ llvm/lib/Target/CBackend/CBackend.cpp Wed Mar 28 18:08:37 2007
@@ -1293,7 +1293,10 @@
<< "#define alloca(x) __builtin_alloca(x)\n"
<< "#elif defined(__FreeBSD__) || defined(__OpenBSD__)\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
- << "#elif !defined(_MSC_VER)\n"
+ << "#elif defined(_MSC_VER)\n"
+ << "#define inline\n"
+ << "#define alloca(x) _alloca(x)\n"
+ << "#else\n"
<< "#include <alloca.h>\n"
<< "#endif\n\n";
More information about the llvm-commits
mailing list