PR tree-opt/19763
* gcc.c-torture/compile/pr19736.c: New test.
2005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/19736
* tree-ssa.c (replace_immediate_uses): Update the immediate_uses
information for the new statement.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94658
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR tree-opt/19736
+ * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
+ information for the new statement.
+
2005-02-03 Joseph S. Myers <joseph@codesourcery.com>
PR driver/19117
+2005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR tree-opt/19763
+ * gcc.c-torture/compile/pr19736.c: New test.
+
2005-02-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/17401
--- /dev/null
+/* We used to ICE because we had forgot to update the immediate_uses
+ information after foldding the last strcpy in Reduce PHI.
+ This was PR tree-opt/19763. */
+
+extern char *strcpy (char *, const char *);
+void sdbout_one_type (char *p)
+{
+ int i, t = 1;
+ char *q;
+ for (i = 0; i < 2; i++)
+ {
+ strcpy (p, "1");
+ p += sizeof ("1");
+ }
+ if (t)
+ q = "2";
+ else
+ q = "3";
+ strcpy (p, q);
+}
+
if (tmp != stmt)
{
block_stmt_iterator si = bsi_for_stmt (stmt);
+ mark_new_vars_to_rename (tmp, vars_to_rename);
+ redirect_immediate_uses (stmt, tmp);
bsi_replace (&si, tmp, true);
stmt = bsi_stmt (si);
}