Make a collect-utils library for use by tools like collect2 and lto-wrapper.
authorBernd Schmidt <bernds@codesourcery.com>
Thu, 26 Jun 2014 09:16:11 +0000 (09:16 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 26 Jun 2014 09:16:11 +0000 (09:16 +0000)
commita185856a06e7b26a06229563b2b01b92e6a4589b
tree7149ab9414fb61c620960a84164a685ca78e72d8
parent53d51ddb7dde27cd60328b795321d04ee9ab51fb
Make a collect-utils library for use by tools like collect2 and lto-wrapper.

* 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.

From-SVN: r212018
gcc/ChangeLog
gcc/Makefile.in
gcc/collect-utils.c [new file with mode: 0644]
gcc/collect-utils.h [new file with mode: 0644]
gcc/lto-wrapper.c