From d2b3fe1871c31d6b16ff7451e14b65255053fee5 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 31 Mar 2011 10:02:00 +0000 Subject: [PATCH] re PR lto/48246 (ICE in lto_wpa_write_files) 2011-03-31 Richard Guenther PR lto/48246 * lto.c (lto_wpa_write_files): Disable assert for non-empty partitions when checking is not enabled. From-SVN: r171775 --- gcc/lto/ChangeLog | 6 ++++++ gcc/lto/lto.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index c07fa061743..3ea90dadd1d 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,9 @@ +2011-03-31 Richard Guenther + + PR lto/48246 + * lto.c (lto_wpa_write_files): Disable assert for non-empty + partitions when checking is not enabled. + 2011-03-25 Kai Tietz * lto.c (lto_resolution_read): Use filename_cmp instead diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 099243bfda4..6ab75357321 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1514,8 +1514,8 @@ lto_wpa_write_files (void) fprintf (cgraph_dump_file, "varpool nodes:"); dump_varpool_node_set (cgraph_dump_file, vset); } - gcc_assert (cgraph_node_set_nonempty_p (set) - || varpool_node_set_nonempty_p (vset) || !i); + gcc_checking_assert (cgraph_node_set_nonempty_p (set) + || varpool_node_set_nonempty_p (vset) || !i); lto_set_current_out_file (file);