Support '-plugin' as the second option to the linker.

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
This commit is contained in:
H.J. Lu 2010-10-12 16:40:39 +00:00 committed by H.J. Lu
parent 718a8e53dc
commit 515fe073f6
2 changed files with 8 additions and 2 deletions

View 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

View 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