[llvm-commits] [llvm-gcc-4.2] r63865 - /llvm-gcc-4.2/trunk/gcc/gcc.c

Rafael Espindola rafael.espindola at gmail.com
Thu Feb 5 03:42:33 PST 2009


Author: rafael
Date: Thu Feb  5 05:42:24 2009
New Revision: 63865

URL: http://llvm.org/viewvc/llvm-project?rev=63865&view=rev
Log:
Don't pass -emit-llvm to the plugin. Gold confuses it with -e mit-llvm.

This fixes gcc -emit-llvm -use-gold-plugin t.c -o t


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=63865&r1=63864&r2=63865&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/gcc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/gcc.c Thu Feb  5 05:42:24 2009
@@ -713,12 +713,13 @@
    scripts which exist in user specified directories, or in standard
    directories.  */
 /* APPLE LOCAL begin add fcreate-profile */
-/* LLVM LOCAL begin add use-gold-plugin */
+/* LLVM LOCAL begin add use-gold-plugin, remove emit-llvm */
 #ifndef LINK_COMMAND_SPEC
 #define LINK_COMMAND_SPEC "\
 %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
     %(linker) %{use-gold-plugin: -plugin %(gold_plugin_file)} \
-    %l " LINK_PIE_SPEC "%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}\
+    %l " LINK_PIE_SPEC "%X %{o*} %{A} %{d} %<emit-llvm %{e*}\
+    %{m} %{N} %{n} %{r}\
     %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\
     %{static:} %{L*} %(mfwrap) %(link_libgcc) %o\
     %{fopenmp:%:include(libgomp.spec)%(link_gomp)} %(mflib)\





More information about the llvm-commits mailing list