mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Sparcs behave better if we use <alloca.h> and avoid messing with __builtin_alloca.
llvm-svn: 18397
This commit is contained in:
parent
2c91540ff1
commit
48f8e8b05a
@ -707,7 +707,7 @@ void CWriter::writeOperand(Value *Operand) {
|
||||
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(sun) || defined(__CYGWIN__) || defined(__APPLE__)\n"
|
||||
<< "#if defined(__CYGWIN__) || defined(__APPLE__)\n"
|
||||
<< "extern void *__builtin_alloca(unsigned long);\n"
|
||||
<< "#define alloca(x) __builtin_alloca(x)\n"
|
||||
<< "#elif defined(__FreeBSD__)\n"
|
||||
|
Loading…
Reference in New Issue
Block a user