This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[csl-arm] More combine and deleted insns.
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 30 Apr 2005 15:19:26 +0100
- Subject: [csl-arm] More combine and deleted insns.
The attached patch fixes annother case where combine puts notes back onto an
about-to-be-deleted insn. THis one is harmless, but trips up my assert.
Tested with cross to arm-unknown-eabi.
Applied to csl-arm-branch.
Paul
2005-04-30 Paul Brook <paul@codesourcery.com>
* combine.c (distribute_notes): Don't put REG_EQUAL notes on deleted
insns.
Index: gcc/combine.c
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/combine.c,v
retrieving revision 1.394.4.5
diff -u -p -r1.394.4.5 combine.c
--- gcc/combine.c 30 Apr 2005 02:40:06 -0000 1.394.4.5
+++ gcc/combine.c 30 Apr 2005 14:07:51 -0000
@@ -12502,6 +12502,7 @@ distribute_notes (rtx notes, rtx from_in
seem worth the trouble. */
if (from_insn == i3
+ && PATTERN(i3) != pc_rtx
&& (XEXP (note, 0) == 0 || CONSTANT_P (XEXP (note, 0))))
place = i3;
break;