diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-10-12 16:40:39 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-10-12 09:40:39 -0700 |
commit | 515fe073f6b6973655021153183ab3132a9f032c (patch) | |
tree | 945f04162540acb73ef27c1fcc6375962a1b0c62 | |
parent | 718a8e53dce6751ad2c25954adfa8f666bd9d36e (diff) | |
download | gcc-515fe073f6b6973655021153183ab3132a9f032c.zip gcc-515fe073f6b6973655021153183ab3132a9f032c.tar.gz gcc-515fe073f6b6973655021153183ab3132a9f032c.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/exec-tool.in | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f4a478..7a46d36 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/exec-tool.in b/gcc/exec-tool.in index a146899..020294e 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 |