summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-09 16:55:25 +0000
committerChris Lattner <sabre@nondot.org>2006-08-09 16:55:25 +0000
commita335812f14be7c2f6dd657e184cf077afc4b983a (patch)
tree524a3367f1cd8f35b3b66bdfe3c192f8058aed7b
parent5eff75250d4e90bb5263d74ead6e58fd37287e24 (diff)
Apply patch from mainline for GCC 3.3 compatibility.
llvm-svn: 29587
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index 8a62ed8bc33d..895889ae967a 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelEmitter.cpp
@@ -3633,6 +3633,8 @@ void DAGISelEmitter::run(std::ostream &OS) {
OS << "#if defined(__GNUC__) && \\\n";
OS << " ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4)))\n";
OS << "#define NOINLINE __attribute__((noinline))\n";
+ OS << "#else\n\n";
+ OS << "#define NOINLINE\n\n";
OS << "#endif\n\n";
OS << "// Instance var to keep track of multiply used nodes that have \n"