lto wrapper verboseness

Nathan Sidwell nathan@acm.org
Thu Jul 30 11:37:00 GMT 2015


On 07/30/15 04:28, Richard Biener wrote:
> On Thu, Jul 30, 2015 at 10:15 AM, Jakub Jelinek <jakub@redhat.com> wrote:
>> On Thu, Jul 30, 2015 at 10:09:05AM +0200, Richard Biener wrote:
>>> On Thu, Jul 30, 2015 at 1:05 AM, Nathan Sidwell <nathan@acm.org> wrote:
>>>> Jakub,
>>>> this patch augments the lto wrapper to print out the arguments to spawned
>>>> commands when verbose.  I found this useful in debugging recent development.
>>>>
>>>> ok for trunk?
>>>
>>> Err - fork_execute through collect_execute already does this if
>>> verbose || debug.
>>>
>>> So better figure out why this doesn't work.
>>
>> All I can add is that it really doesn't work, so far to get at the arguments
>> passed to the offloading cc1/cc1plus/f951, I had to strace -s 1024 -v and
>> capture what has been passed to the compiler and the content of the
>> temporary file with options.
>
> Is this because collect_execute prints the variant with the response file?
> Then better fix that.  Of course we only print the driver invocation - but
> that's the same with the proposed patch.

It did surprise me that the usual machinery wasn't printing this stuff, but I 
didn't investigate why.


nathan



More information about the Gcc-patches mailing list