Small cleanups before making collect2 use collect-utils.
authorBernd Schmidt <bernds@codesourcery.com>
Thu, 26 Jun 2014 09:16:19 +0000 (09:16 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 26 Jun 2014 09:16:19 +0000 (09:16 +0000)
commit608508a67719de05d2144200325662bda7204adc
treef0d0a3f3ffbbb64530f9c1a1a860983cd9984b28
parenta185856a06e7b26a06229563b2b01b92e6a4589b
Small cleanups before making collect2 use collect-utils.

* collect-utils.c (save_temps): New variable.
(do_wait): Use it instead of debug.  Use fatal_error.
* collect-utils.h (save_temps): Declare.
* collect2.c (verbose): Rename from vflag.  All uses changed.
(tool_cleanup): New function, copied from collect_atexit.
(collect_atexit, handler): Just call it.
* collect2.h (verbose): Declaration renamed from vflag.
* lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
debug.

From-SVN: r212019
gcc/ChangeLog
gcc/collect-utils.c
gcc/collect-utils.h
gcc/collect2.c
gcc/collect2.h
gcc/lto-wrapper.c
gcc/tlink.c