Sparcs behave better if we use <alloca.h> and avoid messing with __builtin_alloca.
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 30 Nov 2004 21:27:01 +0000 (21:27 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 30 Nov 2004 21:27:01 +0000 (21:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18397 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 4e8b631ad5c715c23b7fb3342866168d38afdbf0..7f6cadca49ce5b10cf360d82f71fb2f9494e4ff1 100644 (file)
@@ -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"
index 4e8b631ad5c715c23b7fb3342866168d38afdbf0..7f6cadca49ce5b10cf360d82f71fb2f9494e4ff1 100644 (file)
@@ -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"