[patch] make -flto -save-temps less verbose

Richard Biener richard.guenther@gmail.com
Thu Mar 13 09:35:00 GMT 2014


On Thu, Mar 13, 2014 at 1:10 AM, Cesar Philippidis
<cesar@codesourcery.com> wrote:
> I noticed that the lto-wrapper is a little noisy without the -v option
> when -save-temps is used. E.g.,
>
> $ gcc main.c -flto -save-temps
> [Leaving LTRANS /tmp/ccSEvaB7.args]
> [Leaving LTRANS /tmp/ccQomDzb.ltrans.out]
> [Leaving LTRANS /tmp/ccVzWdGZ.args]
> [Leaving LTRANS /tmp/ccQomDzb.ltrans0.o]
>
> Those messages probably should be suppressed unless the user wants
> verbose diagnostics. They also show up as errors in the testsuite
> (although none currently use -save-temps with -flto, yet). The attached
> patch addresses this issue by disabling those messages unless the user
> passes -v to the driver. I've also included a simple test case which
> would fail without the change.
>
> Is this OK for stage-4? If so, please check it in since I don't have an
> SVN account.

Ok (I'll check it in).

Thanks,
Richard.

> Thanks,
> Cesar
>



More information about the Gcc-patches mailing list