summaryrefslogtreecommitdiff
path: root/gcc/reg-stack.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-26 08:34:01 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-26 08:34:01 +0000
commit4e9abdcc8c9f81e9978cae85f20ac3f15e88c5de (patch)
tree497c4155e0c61defa1e0d4948f2dfccb6efb8afd /gcc/reg-stack.c
parente85d1f6264480fcf984e02b10b8f8f7d80d302cb (diff)
downloadgcc-4e9abdcc8c9f81e9978cae85f20ac3f15e88c5de.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123210 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r--gcc/reg-stack.c3
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))