diff options
author | Richard Guenther <rguenther@suse.de> | 2009-10-09 13:24:59 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-10-09 13:24:59 +0000 |
commit | b1b07c92e166e6c5d8f0fd95503e44b4ecfbd762 (patch) | |
tree | df79584a59c59cc699aebb0953c8a12388d08091 /gcc/lto/lto.c | |
parent | 9f3f7d131fd4200ed84aa44ec75b3c675b8273ae (diff) | |
download | gcc-b1b07c92e166e6c5d8f0fd95503e44b4ecfbd762.zip gcc-b1b07c92e166e6c5d8f0fd95503e44b4ecfbd762.tar.gz gcc-b1b07c92e166e6c5d8f0fd95503e44b4ecfbd762.tar.bz2 |
re PR driver/41637 (testsuite (-flto/-fwhopr) leaves does not clean up in /tmp)
2009-10-09 Richard Guenther <rguenther@suse.de>
PR driver/41637
* lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
globals.
(lto_wrapper_exit): New function.
(fatal): Use it.
(fatal_perror): Likewise.
(fork_execute): Use global args_name, do not free it.
(run_gcc): Use global ltrans_output_file, flto_out, do not free them.
* lto-streamer.h: Remove duplicate prototypes.
PR lto/41635
PR lto/41636
lto/
* lto.c (read_cgraph_and_symbols): Do not assert we can open
a file.
* lto-elf.c (init_shdr##BITS): Fix i18n problems.
(init_ehdr##BITS): Likewise.
From-SVN: r152588
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r-- | gcc/lto/lto.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index cc40091..2b674c1 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1779,7 +1779,10 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames) unsigned num_objects; resolution = fopen (resolution_file_name, "r"); - gcc_assert (resolution != NULL); + if (resolution == NULL) + fatal_error ("could not open symbol resolution file: %s", + xstrerror (errno)); + t = fscanf (resolution, "%u", &num_objects); gcc_assert (t == 1); |