This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]