* stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.

From-SVN: r58128
This commit is contained in:
Graham Stott 2002-10-14 18:02:43 +00:00 committed by Graham Stott
parent 3a840c9310
commit 34146b9406
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-10-14 Graham Stott <graham.stott@btinternet.com>
* stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
2002-10-14 Aldy Hernandez <aldyh@redhat.com>
* stmt.c: Fix typo in comment.
@ -2932,7 +2936,7 @@ Tue Sep 17 13:40:13 2002 Nicola Pero <n.pero@mi.flashnet.it>
* cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
information.
2002-09-07 Graham Stott <graham.stott@btinternet.con>
2002-09-07 Graham Stott <graham.stott@btinternet.com>
* rtlanal.c (dead_or_set_regno_p): Fix typo.

View File

@ -1414,6 +1414,7 @@ decl_conflicts_with_clobbers_p (decl, clobbered_regs)
list are not allowed. */
if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL)
&& DECL_REGISTER (decl)
&& REG_P (DECL_RTL (decl))
&& REGNO (DECL_RTL (decl)) < FIRST_PSEUDO_REGISTER)
{
rtx reg = DECL_RTL (decl);