diff options
author | espindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-28 21:41:34 +0000 |
---|---|---|
committer | espindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-28 21:41:34 +0000 |
commit | 13cc45c4de3324454a59a2b446f8354950c10ee2 (patch) | |
tree | 67b4bf8c446f1bc114212d09c81dbdb74b31496c /lto-plugin | |
parent | 24a870cc59577c361ca76fae5889a4e85abbab16 (diff) | |
download | gcc-13cc45c4de3324454a59a2b446f8354950c10ee2.tar.gz |
2009-10-28 Rafael Avila de Espindola <espindola@google.com>
* lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
LDPL_ERROR
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153687 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'lto-plugin')
-rw-r--r-- | lto-plugin/ChangeLog | 5 | ||||
-rw-r--r-- | lto-plugin/lto-plugin.c | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index e0e78929fd9..fd2d7169966 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -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> PR lto/41652 diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 0cf1ab4ec69..3a51441c433 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -512,8 +512,6 @@ all_symbols_read_handler (void) static enum ld_plugin_status cleanup_handler (void) { - /* Note: we cannot use LDPL_FATAL in here as that would produce - an infinite loop. */ int t; unsigned i; char *arguments; @@ -525,23 +523,23 @@ cleanup_handler (void) if (info->temp) { 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 that the arguments file is still exists. */ 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) { 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); 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 (); return LDPS_OK; |