From: H.J. Lu Date: Tue, 12 Oct 2010 16:40:39 +0000 (+0000) Subject: Support '-plugin' as the second option to the linker. X-Git-Tag: releases/gcc-4.6.0~3575 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=515fe073f6b6973655021153183ab3132a9f032c;p=thirdparty%2Fgcc.git Support '-plugin' as the second option to the linker. 2010-10-12 H.J. Lu PR bootstrap/45958 * exec-tool.in: Support '-plugin' as the second option to the linker. From-SVN: r165389 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f4a478e780c..7a46d36eb60e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-10-12 H.J. Lu + + PR bootstrap/45958 + * exec-tool.in: Support '-plugin' as the second option to the + linker. + 2010-10-12 Richard Henderson PR middle-end/45962 diff --git a/gcc/exec-tool.in b/gcc/exec-tool.in index a1468999b597..020294e00834 100644 --- a/gcc/exec-tool.in +++ b/gcc/exec-tool.in @@ -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