diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2007-03-26 10:34:01 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2007-03-26 10:34:01 +0200 |
commit | 8dde5924c6d38506f903070704352714d54e6aa8 (patch) | |
tree | 497c4155e0c61defa1e0d4948f2dfccb6efb8afd /gcc/reg-stack.c | |
parent | 04375334a4faf46528727cb54400e7d60aa80e22 (diff) | |
download | gcc-8dde5924c6d38506f903070704352714d54e6aa8.tar.gz |
reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
* reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
* config/i386/constraints.md
(define_constraint "I"): Use IN_RANGE macro.
(define_constraint "J"): Ditto.
(define_constraint "K"): Ditto.
(define_constraint "M"): Ditto.
(define_constraint "N"): Ditto.
(define_constraint "O"): Ditto.
* config/i386/predicates.md
(define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
(define_predicate "const_0_to_3_operand"): Ditto.
(define_predicate "const_0_to_7_operand"): Ditto.
(define_predicate "const_0_to_15_operand"): Ditto.
(define_predicate "const_0_to_63_operand"): Ditto.
(define_predicate "const_0_to_255_operand"): Ditto.
(define_predicate "const_1_to_31_operand"): Ditto.
(define_predicate "const_2_to_3_operand"): Ditto.
(define_predicate "const_4_to_7_operand"): Ditto.
From-SVN: r123210
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 0cc3629858f..933bff25456 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -695,8 +695,7 @@ stack_result (tree decl) static void replace_reg (rtx *reg, int regno) { - gcc_assert (regno >= FIRST_STACK_REG); - gcc_assert (regno <= LAST_STACK_REG); + gcc_assert (IN_RANGE (regno, FIRST_STACK_REG, LAST_STACK_REG)); gcc_assert (STACK_REG_P (*reg)); gcc_assert (SCALAR_FLOAT_MODE_P (GET_MODE (*reg)) |