[llvm-commits] [llvm-gcc-4.2] r63682 - /llvm-gcc-4.2/trunk/gcc/gcc.c
Rafael Espindola
rafael.espindola at gmail.com
Tue Feb 3 15:28:07 PST 2009
Author: rafael
Date: Tue Feb 3 17:28:07 2009
New Revision: 63682
URL: http://llvm.org/viewvc/llvm-project?rev=63682&view=rev
Log:
add LLVM LOCAL
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=63682&r1=63681&r2=63682&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/gcc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/gcc.c Tue Feb 3 17:28:07 2009
@@ -767,7 +767,9 @@
static const char *startfile_spec = STARTFILE_SPEC;
static const char *switches_need_spaces = SWITCHES_NEED_SPACES;
static const char *linker_name_spec = LINKER_NAME;
+/* LLVM LOCAL begin */
static const char *gold_plugin_file_spec = "";
+/* LLVM LOCAL end */
static const char *link_command_spec = LINK_COMMAND_SPEC;
static const char *link_libgcc_spec = LINK_LIBGCC_SPEC;
static const char *startfile_prefix_spec = STARTFILE_PREFIX_SPEC;
@@ -7142,7 +7144,9 @@
if (num_linker_inputs > 0 && error_count == 0)
{
int tmp = execution_count;
+ /* LLVM LOCAL begin */
const char *use_gold_plugin = "use-gold-plugin";
+ /* LLVM LOCAL end */
/* We'll use ld if we can't find collect2. */
if (! strcmp (linker_name_spec, "collect2"))
@@ -7152,6 +7156,7 @@
linker_name_spec = "ld";
}
+ /* LLVM LOCAL begin */
if (switch_matches (use_gold_plugin,
use_gold_plugin + strlen (use_gold_plugin), 0))
{
@@ -7161,6 +7166,7 @@
if (!gold_plugin_file_spec)
fatal ("-use-gold-plugin, but libLLVMgold.so not found.");
}
+ /* LLVM LOCAL end */
/* Rebuild the COMPILER_PATH and LIBRARY_PATH environment variables
for collect. */
More information about the llvm-commits
mailing list