Make a collect-utils library for use by tools like collect2 and lto-wrapper

Programming / Compilers / GCC - bernds [138bc75d-0d04-0410-961f-82ee72b054a4] - 26 June 2014 04:16 UTC

- Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o. (lto-wrapper$(exeext)): Link with collect-utils.o.
- collect-utils.c: New file.
- collect-utils.h: New file.
- lto-wrapper.c: Include "collect-utils.h". (args_name): Delete variable. (tool_name): New variable. (tool_cleanup): New function. (maybe_unlink): Renamed from maybe_unlink_file. All callers changed. (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait, fork_execute): Remove functions.

eb9ccb0 Make a collect-utils library for use by tools like collect2 and lto-wrapper.
gcc/ChangeLog | 14 ++++
gcc/Makefile.in | 7 +-
gcc/collect-utils.c | 222 +++++++++++++++++++++++++++++++++++++++++++++++++++
gcc/collect-utils.h | 40 ++++++++++
gcc/lto-wrapper.c | 171 +++++----------------------------------
5 files changed, 298 insertions(+), 156 deletions(-)

Upstream: gcc.gnu.org


  • Share