revert: re PR rtl-optimization/16590 (Incorrect execution when compiling with -O2)

Revert:
	2004-08-29  Mark Mitchell  <mark@codesourcery.com>
	PR rtl-optimization/16590
	* gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.

	* g++.dg/opt/loop1.C: XFAIL.

From-SVN: r86820
This commit is contained in:
Mark Mitchell 2004-08-31 06:31:06 +00:00 committed by Mark Mitchell
parent 992c944ca6
commit 9b76aa3b1b
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2004-08-30 Mark Mitchell <mark@codesourcery.com>
Revert:
2004-08-29 Mark Mitchell <mark@codesourcery.com>
PR rtl-optimization/16590
* gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
2004-08-30 Andrew Pinski <apinski@apple.com>
* hard-reg-set.h:

View File

@ -4463,9 +4463,7 @@ pre_delete (void)
expr->reaching_reg
= gen_reg_rtx (GET_MODE (SET_DEST (set)));
emit_insn_after (gen_move_insn (SET_DEST (set),
expr->reaching_reg),
insn);
gcse_emit_move_after (expr->reaching_reg, SET_DEST (set), insn);
delete_insn (insn);
occr->deleted_p = 1;
SET_BIT (pre_redundant_insns, INSN_CUID (insn));

View File

@ -1,3 +1,7 @@
2004-08-30 Mark Mitchell <mark@codesourcery.com>
* g++.dg/opt/loop1.C: XFAIL.
2004-08-30 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/funcdef-storage-1.c: New.

View File

@ -1,5 +1,5 @@
// PR rtl-optimization/16590
// { dg-do run }
// { dg-do run { xfail *-*-* } }
// { dg-options "-O2" }
extern "C" void abort();