From 8ad0d964acb6f8c7db9b48165d20ed41f68cc7ff Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 2 Feb 2004 18:20:55 +0000 Subject: [PATCH] rtlanal.c (refers_to_regno_p): Test regno, not inner_regno, against FIRST_PSEUDO_REGISTER. * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno, against FIRST_PSEUDO_REGISTER. From-SVN: r77128 --- gcc/ChangeLog | 5 +++++ gcc/rtlanal.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d3203c584e3..45b7679556c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-02-02 David Edelsohn + + * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno, + against FIRST_PSEUDO_REGISTER. + 2004-02-02 Eric Botcazou * doc/invoke.texi (SPARC options): Further improve. diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 3744a327f20..e8589306409 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1449,7 +1449,7 @@ refers_to_regno_p (unsigned int regno, unsigned int endregno, rtx x, { unsigned int inner_regno = subreg_regno (x); unsigned int inner_endregno - = inner_regno + (inner_regno < FIRST_PSEUDO_REGISTER + = inner_regno + (regno < FIRST_PSEUDO_REGISTER ? hard_regno_nregs[regno][GET_MODE (x)] : 1); return endregno > inner_regno && regno < inner_endregno; -- 2.30.2