diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2014-06-26 09:16:19 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2014-06-26 09:16:19 +0000 |
commit | 608508a67719de05d2144200325662bda7204adc (patch) | |
tree | f0d0a3f3ffbbb64530f9c1a1a860983cd9984b28 /gcc/lto-wrapper.c | |
parent | a185856a06e7b26a06229563b2b01b92e6a4589b (diff) | |
download | gcc-608508a67719de05d2144200325662bda7204adc.zip gcc-608508a67719de05d2144200325662bda7204adc.tar.gz gcc-608508a67719de05d2144200325662bda7204adc.tar.bz2 |
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
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r-- | gcc/lto-wrapper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 45ce321..49f0895 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -99,7 +99,7 @@ lto_wrapper_cleanup (void) void maybe_unlink (const char *file) { - if (! debug) + if (!save_temps) { if (unlink_if_ordinary (file) && errno != ENOENT) @@ -540,7 +540,7 @@ run_gcc (unsigned argc, char *argv[]) continue; case OPT_save_temps: - debug = 1; + save_temps = 1; break; case OPT_v: @@ -647,7 +647,7 @@ run_gcc (unsigned argc, char *argv[]) obstack_ptr_grow (&argv_obstack, dumpbase); } - if (linker_output && debug) + if (linker_output && save_temps) { ltrans_output_file = (char *) xmalloc (strlen (linker_output) + sizeof (".ltrans.out") + 1); @@ -785,7 +785,7 @@ cont: /* If we are not preserving the ltrans input files then truncate them as soon as we have processed it. This reduces temporary disk-space usage. */ - if (! debug) + if (! save_temps) fprintf (mstream, "\t@-touch -r %s %s.tem > /dev/null 2>&1 " "&& mv %s.tem %s\n", input_name, input_name, input_name, input_name); |