aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect-utils.h
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2021-08-30 22:43:16 +0000
committerAndrew Pinski <apinski@marvell.com>2021-08-31 06:28:27 +0000
commit2dc6782a06eeffd9dc6b84fe93b8fcd2ce4960c7 (patch)
tree0eefa07639eef1dfde32f69b24d7c9c07d4ce857 /gcc/collect-utils.h
parente4d86078881bb7bb57bc6e68c22211707d2b3dc7 (diff)
downloadgcc-2dc6782a06eeffd9dc6b84fe93b8fcd2ce4960c7.zip
gcc-2dc6782a06eeffd9dc6b84fe93b8fcd2ce4960c7.tar.gz
gcc-2dc6782a06eeffd9dc6b84fe93b8fcd2ce4960c7.tar.bz2
Fix PR driver/79181 (and others), not deleting some /tmp/cc* files for LTO.
So the main issue here is that some signals are not setup unlike collect2. So this merges the setting up of the signal handlers to one function in collect-utils and has collect2 and lto-wrapper call that function. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: PR driver/79181 * collect-utils.c (setup_signals): New declaration. * collect-utils.h (setup_signals): New function. * collect2.c (handler): Delete. (main): Instead of manually setting up the signals, just call setup_signals. * lto-wrapper.c (main): Likewise.
Diffstat (limited to 'gcc/collect-utils.h')
-rw-r--r--gcc/collect-utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/collect-utils.h b/gcc/collect-utils.h
index 4f0e3ce..15f831d 100644
--- a/gcc/collect-utils.h
+++ b/gcc/collect-utils.h
@@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see
extern void notice (const char *, ...)
__attribute__ ((format (printf, 1, 2)));
extern void fatal_signal (int);
+extern void setup_signals (void);
extern struct pex_obj *collect_execute (const char *, char **,
const char *, const char *,