]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Support '-plugin' as the second option to the linker.
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 12 Oct 2010 16:40:39 +0000 (16:40 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 12 Oct 2010 16:40:39 +0000 (09:40 -0700)
2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/45958
* exec-tool.in: Support '-plugin' as the second option to the
linker.

From-SVN: r165389

gcc/ChangeLog
gcc/exec-tool.in

index 7f4a478e780ca6a59b074667d1b10d782e2bdbcb..7a46d36eb60e83d6af2a6ae59aa87172dcb76613 100644 (file)
@@ -1,3 +1,9 @@
+2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR bootstrap/45958
+       * exec-tool.in: Support '-plugin' as the second option to the
+       linker.
+
 2010-10-12  Richard Henderson  <rth@redhat.com>
 
        PR middle-end/45962
index a1468999b597fc0a987c21df9fe53254cc37f963..020294e00834283f573bfa07d72a816e9e2d1092 100644 (file)
@@ -36,8 +36,8 @@ case "$invoked" in
     ;;
   collect-ld)
     # when using a linker plugin, gcc will always pass '-plugin' as the
-    # first option to the linker.
-    if test x"$1" = "x-plugin"; then
+    # first or second option to the linker.
+    if test x"$1" = "x-plugin" || test x"$2" = "x-plugin"; then
       original=$ORIGINAL_PLUGIN_LD_FOR_TARGET
     else
       original=$ORIGINAL_LD_FOR_TARGET