This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: trouble in attempt_auto_inc
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: rz at linux-m68k dot org (Richard Zidlicky)
- Cc: gcc at gnu dot org
- Date: Fri, 16 Jan 2004 15:24:21 +0000 (GMT)
- Subject: Re: trouble in attempt_auto_inc
> Breakpoint 5, attempt_auto_inc (pbi=0x849ece8, inc=0x40be2618,
> insn=0x40ab1fa0, mem=0x40ab4414, incr=0x40ab60c8, incr_reg=0x40b2fc70)
> at ../../gcc-3.4-20040107/gcc/flow.c:3366
> 3366 if (REGNO (SET_DEST (set)) == REGNO (incr_reg))
This misses a check GET_CODE (SET_DEST (set)) == REG.
Or it could just use rtx_equal_p, i.e.
if (rtx_equal_p (SET_DEST (set), incr_reg))