This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR bootstrap/45958: --with-build-config=bootstrap-lto doesn't work


On Sun, Oct 10, 2010 at 12:27 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> --with-demangler-in-ld will make gcc to pass "--demangle -plugin ..." to
> ld. ?But exec-tool.in has
>
> ?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
> ? ? ?original=$ORIGINAL_PLUGIN_LD_FOR_TARGET
> ? ?else
> ? ? ?original=$ORIGINAL_LD_FOR_TARGET
> ? ?fi
>
> It doesn't work with "--demangle -plugin ...". ?This patch supports
> '-plugin' as the second option to the linker. ?OK to install?
>
> Thanks.
>
>
> H.J.
> ---
> 2010-10-10 ?H.J. Lu ?<hongjiu.lu@intel.com>
>
> ? ? ? ?PR bootstrap/45958
> ? ? ? ?* exec-tool.in: Support '-plugin' as the second option to the
> ? ? ? ?linker.
>
> 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
>

PING

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]