From 34146b9406f4281fc83386e58059457cba1b5e1b Mon Sep 17 00:00:00 2001 From: Graham Stott Date: Mon, 14 Oct 2002 18:02:43 +0000 Subject: [PATCH] * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check. From-SVN: r58128 --- gcc/ChangeLog | 6 +++++- gcc/stmt.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1e5c0ed9d01..0f5f1e061c4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-10-14 Graham Stott + + * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check. + 2002-10-14 Aldy Hernandez * stmt.c: Fix typo in comment. @@ -2932,7 +2936,7 @@ Tue Sep 17 13:40:13 2002 Nicola Pero * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness information. -2002-09-07 Graham Stott +2002-09-07 Graham Stott * rtlanal.c (dead_or_set_regno_p): Fix typo. diff --git a/gcc/stmt.c b/gcc/stmt.c index 66233ce5324..c07fe663fb3 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -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);