https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108684

--- Comment #6 from Andrew Macleod <amacleod at redhat dot com> ---
diff --git a/gcc/tree-ssa-dce.cc b/gcc/tree-ssa-dce.cc
index b2fe9f4f55e..752785541e4 100644
--- a/gcc/tree-ssa-dce.cc
+++ b/gcc/tree-ssa-dce.cc
@@ -2140,6 +2140,7 @@ simple_dce_from_worklist (bitmap worklist)
        remove_phi_node (&gsi, true);
       else
        {
+         unlink_stmt_vdef (t);
          gsi_remove (&gsi, true);
          release_defs (t);
        }


Fixes the issue...  huh     how long has THAT been there

Reply via email to