summaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorgrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-14 18:02:43 +0000
committergrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-14 18:02:43 +0000
commited3a6e06fb55f287618eae282a94bd31b5d9aab9 (patch)
tree8117e18e154497014953dcb2d4769cd53fdc22f4 /gcc/stmt.c
parent3326ed936ffd77397e507a7fa5eb21f7d210d3fd (diff)
downloadgcc-ed3a6e06fb55f287618eae282a94bd31b5d9aab9.tar.gz
* stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58128 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c1
1 files changed, 1 insertions, 0 deletions
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);