Commit a8a5ac48 by Dmitry Gorbachev Committed by H.J. Lu

Delete temporary output files.

2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>

	PR lto/43336
	* lto-plugin.c (cleanup_handler): Delete temporary output files.

From-SVN: r157483
parent b995570a
2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
PR lto/43336
* lto-plugin.c (cleanup_handler): Delete temporary output files.
2010-01-11 Richard Guenther <rguenther@suse.de>
PR lto/41569
......
......@@ -524,6 +524,7 @@ all_symbols_read_handler (void)
static enum ld_plugin_status
cleanup_handler (void)
{
unsigned int i;
int t;
if (debug)
......@@ -541,6 +542,12 @@ cleanup_handler (void)
check (t == 0, LDPL_FATAL, "could not unlink resolution file");
}
for (i = 0; i < num_output_files; i++)
{
t = unlink (output_files[i]);
check (t == 0, LDPL_FATAL, "could not unlink output file");
}
free_2 ();
return LDPS_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment