[llvm-commits] [llvm-gcc-4.2] r129382 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Evan Cheng
evan.cheng at apple.com
Tue Apr 12 12:50:28 PDT 2011
Author: evancheng
Date: Tue Apr 12 14:50:28 2011
New Revision: 129382
URL: http://llvm.org/viewvc/llvm-project?rev=129382&view=rev
Log:
Attempt to unbreak Fortran (and other non-c languages) llvm-gcc builds.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=129382&r1=129381&r2=129382&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Apr 12 14:50:28 2011
@@ -71,7 +71,12 @@
#include "langhooks.h"
#include "cgraph.h"
#include "params.h"
-#include "c-common.h"
+
+// These are defined in c-common.c. The weak symbols are for linking non-c
+// compilers.
+int flag_no_builtin __attribute__ ((__weak__)) = 0;
+int builtin_function_disabled_p(const char *name) __attribute__ ((__weak__));
+int builtin_function_disabled_p(const char *name) { return 0; }
}
// Non-zero if bytecode from PCH is successfully read.
@@ -662,6 +667,7 @@
CodeGenPasses = 0;
}
+
static void createPerFunctionOptimizationPasses() {
if (PerFunctionPasses)
return;
More information about the llvm-commits
mailing list