aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>2003-04-08 01:34:25 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2003-04-07 23:34:25 +0000
commit760e8e420fdf52ac81864b3b0db2fa488c876c5f (patch)
tree53c863eb3b295048952e83158b84b224c5054751
parentb0a3412c466ef89b925f4754f27b5b0af9d82989 (diff)
downloadgcc-760e8e420fdf52ac81864b3b0db2fa488c876c5f.zip
gcc-760e8e420fdf52ac81864b3b0db2fa488c876c5f.tar.gz
gcc-760e8e420fdf52ac81864b3b0db2fa488c876c5f.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/loop.h11
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ac37bd2..3512513 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
+
+ * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
+ for insns without luid.
+
2003-04-07 Glen Nakamura <glen@imodulo.com>
PR opt/8634
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. */