Re: Create a library for tools like collect2 and lto-wrapper (2/2)

2014-06-06 Thread Joseph S. Myers
On Fri, 6 Jun 2014, Bernd Schmidt wrote: > On 06/03/2014 10:55 PM, Joseph S. Myers wrote: > > OK. > > Thanks. Here's a new version of the original patch set. There are now three > patches, the middle one containing just a few small cleanup steps towards > unifying the code. There was confusion ab

Re: Create a library for tools like collect2 and lto-wrapper (2/2)

2014-06-06 Thread Bernd Schmidt
On 06/03/2014 10:55 PM, Joseph S. Myers wrote: OK. Thanks. Here's a new version of the original patch set. There are now three patches, the middle one containing just a few small cleanup steps towards unifying the code. There was confusion about the meaning of the "debug" variable, so I've c

Re: Create a library for tools like collect2 and lto-wrapper (2/2)

2014-06-03 Thread Joseph S. Myers
On Tue, 27 May 2014, Bernd Schmidt wrote: > > Thus, as an initial step I'd suggest instead converting lto-wrapper to use > > the common functionality where possible (fatal_error with %m replacing > > fatal_perror), making it use atexit in the process. Don't move code using > > legacy fatal / fata

Re: Create a library for tools like collect2 and lto-wrapper (2/2)

2014-05-27 Thread Bernd Schmidt
On 05/22/2014 05:56 PM, Joseph S. Myers wrote: On Thu, 22 May 2014, Bernd Schmidt wrote: The implementations of some functions like fork_execute are changed to those from collect2 and the calls in lto-wrapper adapted accordingly. There are some minor changes in these functions: for example I av

Re: Create a library for tools like collect2 and lto-wrapper (2/2)

2014-05-22 Thread Joseph S. Myers
On Thu, 22 May 2014, Bernd Schmidt wrote: > The implementations of some functions like fork_execute are changed to those > from collect2 and the calls in lto-wrapper adapted accordingly. There are some > minor changes in these functions: for example I avoid calling fatal_error, > instead using the