This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Do not redirect ld stdout/stderr in collect2 with -debug
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 10 Jun 2013 14:44:50 +0000
- Subject: Re: [PATCH] Do not redirect ld stdout/stderr in collect2 with -debug
- References: <alpine dot LNX dot 2 dot 00 dot 1306101358420 dot 26078 at zhemvz dot fhfr dot qr>
On Mon, 10 Jun 2013, Richard Biener wrote:
> This fixes one very annoying thing collect2 does when trying to
> debug LTO WPA issues. Even with -v you need to wait until all
> LTRANS stages completed to see the lto1 -fwpa invocation which
> is because collect2 buffers and replays stdout/stderr of ld
> (to avoid duplicating that in some cases). But I really want
> to see the output immediately but there is no way to do that.
> The easiest is to disable the buffering with -debug (that is,
> -Wl,-debug to the -flto driver command line).
>
> Tested with/without -debug.
>
> Ok for trunk?
OK.
--
Joseph S. Myers
joseph@codesourcery.com