[llvm-commits] [llvm-gcc-4.2] r127095 - /llvm-gcc-4.2/trunk/gcc/gcc.c
Rafael Espindola
rafael.espindola at gmail.com
Sat Mar 5 10:25:17 PST 2011
Author: rafael
Date: Sat Mar 5 12:25:17 2011
New Revision: 127095
URL: http://llvm.org/viewvc/llvm-project?rev=127095&view=rev
Log:
Don't pass as or as-arg to the plugin, we use MC now.
Modified:
llvm-gcc-4.2/trunk/gcc/gcc.c
Modified: llvm-gcc-4.2/trunk/gcc/gcc.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/gcc.c?rev=127095&r1=127094&r2=127095&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/gcc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/gcc.c Sat Mar 5 12:25:17 2011
@@ -720,8 +720,6 @@
%(linker) \
%{use-gold-plugin: \
-plugin %(gold_plugin_file) \
- -plugin-opt=as=%(gold_plugin_as) \
- %{m32:-plugin-opt=as-arg=--32} %{m64:-plugin-opt=as-arg=--64} \
} \
%l " LINK_PIE_SPEC "%X %{o*} %{A} %{d} %<emit-llvm %{e*}\
%{m} %{N} %{n} %{r}\
@@ -778,7 +776,6 @@
/* LLVM LOCAL begin */
#ifdef ENABLE_LLVM
static const char *gold_plugin_file_spec = "";
-static const char *gold_plugin_as_spec = "";
#endif
/* LLVM LOCAL end */
static const char *link_command_spec = LINK_COMMAND_SPEC;
@@ -1664,7 +1661,6 @@
/* LLVM LOCAL begin */
#ifdef ENABLE_LLVM
INIT_STATIC_SPEC ("gold_plugin_file", &gold_plugin_file_spec),
- INIT_STATIC_SPEC ("gold_plugin_as", &gold_plugin_as_spec),
INIT_STATIC_SPEC ("llvm_options", &llvm_options),
#endif
/* LLVM LOCAL end */
@@ -7238,9 +7234,6 @@
if (!gold_plugin_file_spec)
fatal ("-use-gold-plugin, but LLVMgold.so not found.");
}
- gold_plugin_as_spec = find_a_file (&exec_prefixes, "as", X_OK, false);
- if (!gold_plugin_as_spec)
- gold_plugin_as_spec = "as";
#endif
/* LLVM LOCAL end */
/* Rebuild the COMPILER_PATH and LIBRARY_PATH environment variables
More information about the llvm-commits
mailing list