projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04c90b
)
Add support for NetBSD, patch by Krister Walfridsson!
author
Chris Lattner
<sabre@nondot.org>
Sat, 12 Jan 2008 06:46:09 +0000
(06:46 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 12 Jan 2008 06:46:09 +0000
(06:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45902
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/CBackend/CBackend.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/CBackend/CBackend.cpp
b/lib/Target/CBackend/CBackend.cpp
index 235e7b7df08daff751303faacf5b014aec1ad37b..de5bfa24e5011b080fe5c694af8492fef9adf46c 100644
(file)
--- a/
lib/Target/CBackend/CBackend.cpp
+++ b/
lib/Target/CBackend/CBackend.cpp
@@
-1323,7
+1323,7
@@
static void generateCompilerSpecificCode(std::ostream& Out) {
<< "extern void *__builtin_alloca(unsigned int);\n"
<< "#endif\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
- << "#elif defined(__FreeBSD__) || defined(__OpenBSD__)\n"
+ << "#elif defined(__FreeBSD__) || defined(__
NetBSD__) || defined(__
OpenBSD__)\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
<< "#elif defined(_MSC_VER)\n"
<< "#define inline _inline\n"