aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-05-21 16:08:28 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-05-21 16:08:28 +0000
commitbdc89f9eff4e4c967107c3e88bf0737eb0a03c60 (patch)
tree5865c2c4727bc11c4c47c72d3ff9d31b7f84fb89
parent5b4b1c9a4e42e1577df2e566f0aa05f1fe29cee1 (diff)
downloadgcc-bdc89f9eff4e4c967107c3e88bf0737eb0a03c60.zip
gcc-bdc89f9eff4e4c967107c3e88bf0737eb0a03c60.tar.gz
gcc-bdc89f9eff4e4c967107c3e88bf0737eb0a03c60.tar.bz2
lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
2010-05-21 Richard Guenther <rguenther@suse.de> * lto-plugin.c (write_resolution): Do not assert syms is non-NULL. From-SVN: r159676
-rw-r--r--lto-plugin/ChangeLog4
-rw-r--r--lto-plugin/lto-plugin.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog
index df77128..82d7663 100644
--- a/lto-plugin/ChangeLog
+++ b/lto-plugin/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-21 Richard Guenther <rguenther@suse.de>
+
+ * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
+
2010-05-07 Richard Guenther <rguenther@suse.de>
* lto-plugin.c (free_2): Do not free resolution_file.
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index cb785c4..c82f50d 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -317,7 +317,6 @@ write_resolution (void)
struct ld_plugin_symbol *syms = symtab->syms;
unsigned j;
- assert (syms);
get_symbols (info->handle, symtab->nsyms, syms);
fprintf (f, "%s %d\n", info->name, info->symtab.nsyms);