This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree-optimization/21048
- From: Andrew MacLeod <amacleod at redhat dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 26 Apr 2005 13:12:22 -0400
- Subject: [patch] tree-optimization/21048
This patch fixes 21048. I have bootstrapped and verified on
i686-pc-linux-gnu with no new failures. Others have verified the same
thing on various PowerPC configurations.
Checked in.
Andrew
* tree-cfg.c (bsi_replace): Delink immediate uses for the original stmt.
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-cfg.c,v
retrieving revision 2.176
diff -c -p -r2.176 tree-cfg.c
*** tree-cfg.c 21 Apr 2005 09:17:20 -0000 2.176
--- tree-cfg.c 25 Apr 2005 18:32:48 -0000
*************** bsi_replace (const block_stmt_iterator *
*** 3009,3014 ****
--- 3009,3015 ----
add_stmt_to_eh_region (stmt, eh_region);
}
+ delink_stmt_imm_use (orig_stmt);
*bsi_stmt_ptr (*bsi) = stmt;
mark_stmt_modified (stmt);
update_modified_stmts (stmt);