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

Bernd Schmidt bernds@codesourcery.com
Thu May 22 12:03:00 GMT 2014


This is the second part of making a set of utility functions to be used 
by collect2, lto-wrapper and mkoffload.

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 fatal/fatal_perror functions so 
that the cleanup routine is called properly (lto-wrapper does not use 
atexit as collect2 does).

Bootstrapped and tested on x86_64-linux, ok for trunk?


Bernd

-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils2.diff
Type: text/x-patch
Size: 26570 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140522/5d877fb4/attachment.bin>


More information about the Gcc-patches mailing list