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

Rafael Espindola rafael.espindola at gmail.com
Mon Aug 30 13:52:59 PDT 2010


Author: rafael
Date: Mon Aug 30 15:52:59 2010
New Revision: 112522

URL: http://llvm.org/viewvc/llvm-project?rev=112522&view=rev
Log:
Pass -plugin-opt=as-arg=--32 and -plugin-opt=as-arg=--64 if -m32 or -m64 is
passed to gcc.

This should fix the issue Luke reported.

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=112522&r1=112521&r2=112522&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/gcc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/gcc.c Mon Aug 30 15:52:59 2010
@@ -721,6 +721,7 @@
     %{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}\





More information about the llvm-commits mailing list