This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/41470] [4.5 Regression] -fexceptions ICE in partition_view_bitmap, at tree-ssa-live.c:331
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Sep 2009 15:09:42 -0000
- Subject: [Bug middle-end/41470] [4.5 Regression] -fexceptions ICE in partition_view_bitmap, at tree-ssa-live.c:331
- References: <bug-41470-12292@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-09-25 15:09 -------
We go to the ICE of PR41469 with
Index: tree-ssa-coalesce.c
===================================================================
--- tree-ssa-coalesce.c (revision 152166)
+++ tree-ssa-coalesce.c (working copy)
@@ -1377,7 +1377,10 @@ coalesce_ssa_name (void)
{
tree a = ssa_name (i);
- if (a && SSA_NAME_VAR (a) && !DECL_ARTIFICIAL (SSA_NAME_VAR (a)))
+ if (a
+ && !has_zero_uses (a)
+ && SSA_NAME_VAR (a)
+ && !DECL_ARTIFICIAL (SSA_NAME_VAR (a)))
{
tree *slot = (tree *) htab_find_slot (ssa_name_hash, a, INSERT);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41470