lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of LDPL_ERROR
2009-10-28 Rafael Avila de Espindola <espindola@google.com> * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of LDPL_ERROR From-SVN: r153687
This commit is contained in:
parent
180a2539ee
commit
aff4273cf1
|
@ -1,3 +1,8 @@
|
||||||
|
2009-10-28 Rafael Avila de Espindola <espindola@google.com>
|
||||||
|
|
||||||
|
* lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
|
||||||
|
LDPL_ERROR
|
||||||
|
|
||||||
2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
|
2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
|
||||||
|
|
||||||
PR lto/41652
|
PR lto/41652
|
||||||
|
|
|
@ -512,8 +512,6 @@ all_symbols_read_handler (void)
|
||||||
static enum ld_plugin_status
|
static enum ld_plugin_status
|
||||||
cleanup_handler (void)
|
cleanup_handler (void)
|
||||||
{
|
{
|
||||||
/* Note: we cannot use LDPL_FATAL in here as that would produce
|
|
||||||
an infinite loop. */
|
|
||||||
int t;
|
int t;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
char *arguments;
|
char *arguments;
|
||||||
|
@ -525,23 +523,23 @@ cleanup_handler (void)
|
||||||
if (info->temp)
|
if (info->temp)
|
||||||
{
|
{
|
||||||
t = unlink (info->name);
|
t = unlink (info->name);
|
||||||
check (t == 0, LDPL_ERROR, "could not unlink temporary file");
|
check (t == 0, LDPL_FATAL, "could not unlink temporary file");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we are being called from an error handler, it is possible
|
/* If we are being called from an error handler, it is possible
|
||||||
that the arguments file is still exists. */
|
that the arguments file is still exists. */
|
||||||
t = asprintf (&arguments, "%s/arguments", temp_obj_dir_name);
|
t = asprintf (&arguments, "%s/arguments", temp_obj_dir_name);
|
||||||
check (t >= 0, LDPL_ERROR, "asprintf failed");
|
check (t >= 0, LDPL_FATAL, "asprintf failed");
|
||||||
if (stat(arguments, &buf) == 0)
|
if (stat(arguments, &buf) == 0)
|
||||||
{
|
{
|
||||||
t = unlink (arguments);
|
t = unlink (arguments);
|
||||||
check (t == 0, LDPL_ERROR, "could not unlink arguments file");
|
check (t == 0, LDPL_FATAL, "could not unlink arguments file");
|
||||||
}
|
}
|
||||||
free (arguments);
|
free (arguments);
|
||||||
|
|
||||||
t = rmdir (temp_obj_dir_name);
|
t = rmdir (temp_obj_dir_name);
|
||||||
check (t == 0, LDPL_ERROR, "could not remove temporary directory");
|
check (t == 0, LDPL_FATAL, "could not remove temporary directory");
|
||||||
|
|
||||||
free_2 ();
|
free_2 ();
|
||||||
return LDPS_OK;
|
return LDPS_OK;
|
||||||
|
|
Loading…
Reference in New Issue