Commit 515fe073 by H.J. Lu Committed by H.J. Lu

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
parent 718a8e53
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> 2010-10-12 Richard Henderson <rth@redhat.com>
PR middle-end/45962 PR middle-end/45962
...@@ -36,8 +36,8 @@ case "$invoked" in ...@@ -36,8 +36,8 @@ case "$invoked" in
;; ;;
collect-ld) collect-ld)
# when using a linker plugin, gcc will always pass '-plugin' as the # when using a linker plugin, gcc will always pass '-plugin' as the
# first option to the linker. # first or second option to the linker.
if test x"$1" = "x-plugin"; then if test x"$1" = "x-plugin" || test x"$2" = "x-plugin"; then
original=$ORIGINAL_PLUGIN_LD_FOR_TARGET original=$ORIGINAL_PLUGIN_LD_FOR_TARGET
else else
original=$ORIGINAL_LD_FOR_TARGET original=$ORIGINAL_LD_FOR_TARGET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment