summaryrefslogtreecommitdiff
path: root/gcc/lto/lto.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-31 10:02:00 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-31 10:02:00 +0000
commitd45127a1763c48a51c76f833c4bdd2f334d2a251 (patch)
tree415cb3a846477bb2e9f9edb62438f19a33182a08 /gcc/lto/lto.c
parent240a87ff619a24aaa8624f80f9e004be0be4d54a (diff)
downloadgcc-d45127a1763c48a51c76f833c4bdd2f334d2a251.tar.gz
2011-03-31 Richard Guenther <rguenther@suse.de>
PR lto/48246 * lto.c (lto_wpa_write_files): Disable assert for non-empty partitions when checking is not enabled. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r--gcc/lto/lto.c4
1 files changed, 2 insertions, 2 deletions
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);