From 760e8e420fdf52ac81864b3b0db2fa488c876c5f Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Tue, 8 Apr 2003 01:34:25 +0200 Subject: loop.h (REGNO_FIRST_LUID, [...]): Provide defaults for insns without luid. * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults for insns without luid. From-SVN: r65354 --- gcc/loop.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gcc/loop.h') diff --git a/gcc/loop.h b/gcc/loop.h index 362013f..12a0b61 100644 --- a/gcc/loop.h +++ b/gcc/loop.h @@ -49,9 +49,14 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA (INSN_UID (INSN) < max_uid_for_loop ? uid_luid[INSN_UID (INSN)] \ : (abort (), -1)) -#define REGNO_FIRST_LUID(REGNO) uid_luid[REGNO_FIRST_UID (REGNO)] -#define REGNO_LAST_LUID(REGNO) uid_luid[REGNO_LAST_UID (REGNO)] - +#define REGNO_FIRST_LUID(REGNO) \ + (REGNO_FIRST_UID (REGNO) < max_uid_for_loop \ + ? uid_luid[REGNO_FIRST_UID (REGNO)] \ + : 0) +#define REGNO_LAST_LUID(REGNO) \ + (REGNO_LAST_UID (REGNO) < max_uid_for_loop \ + ? uid_luid[REGNO_LAST_UID (REGNO)] \ + : INT_MAX) /* A "basic induction variable" or biv is a pseudo reg that is set (within this loop) only by incrementing or decrementing it. */ -- cgit v1.1