re PR lto/48246 (ICE in lto_wpa_write_files)
authorRichard Guenther <rguenther@suse.de>
Thu, 31 Mar 2011 10:02:00 +0000 (10:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 31 Mar 2011 10:02:00 +0000 (10:02 +0000)
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.

From-SVN: r171775

gcc/lto/ChangeLog
gcc/lto/lto.c

index c07fa06174312d40cff52caebdc0eb2d4d91c126..3ea90dadd1dbd3c38f67b004334601e3d5297129 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2011-03-25  Kai Tietz  <ktietz@redhat.com>
 
        * lto.c (lto_resolution_read): Use filename_cmp instead
index 099243bfda438b9c1565bcfb8e9afdb3d20dad5e..6ab75357321749d38c2b1b2bf7ab5f513c59a338 100644 (file)
@@ -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);