rtl.h (FIND_REG_INC_NOTE): Call find_regno_note for REGs.

* rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
	|| HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
	|| HAVE_POST_DECREMENT]: Call find_regno_note for REGs.

From-SVN: r45617
This commit is contained in:
Hans-Peter Nilsson 2001-09-14 22:29:13 +00:00 committed by Hans-Peter Nilsson
parent 86c7007a57
commit e75ecd268a
2 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,8 @@
2001-09-15 Hans-Peter Nilsson <hp@bitrange.com>
2001-09-15 Hans-Peter Nilsson <hp@axis.com>
* rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
|| HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
|| HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
* reorg.c (fill_slots_from_thread): After call to
steal_delay_list_from_target, update own_thread as new_thread may

View File

@ -944,7 +944,10 @@ extern unsigned int subreg_regno PARAMS ((rtx));
/* Don't continue this line--convex cc version 4.1 would lose. */
#if (defined (HAVE_PRE_INCREMENT) || defined (HAVE_PRE_DECREMENT) || defined (HAVE_POST_INCREMENT) || defined (HAVE_POST_DECREMENT))
#define FIND_REG_INC_NOTE(insn, reg) (find_reg_note ((insn), REG_INC, (reg)))
#define FIND_REG_INC_NOTE(insn, reg) \
(reg != NULL_RTX && REG_P ((rtx) (reg)) \
? find_regno_note ((insn), REG_INC, REGNO ((rtx) (reg))) \
: find_reg_note ((insn), REG_INC, (reg)))
#else
#define FIND_REG_INC_NOTE(insn, reg) 0
#endif