summaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-23 04:53:48 +0000
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-23 04:53:48 +0000
commit2f59f8b223b249352a6e3e740bda3d289f42e6c5 (patch)
treeb2c906a5834e8a57edba5eff762f36253c809198 /gcc/reload.c
parent9d412a718b99e0663927176627b72b16e523c803 (diff)
downloadgcc-2f59f8b223b249352a6e3e740bda3d289f42e6c5.tar.gz
PR target/18511
* reload1.c (emit_output_reload_insns): Check if OLD is a hard register before calling regno_clobbered_p. * reload.c: Update comment for regno_clobbered_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92531 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index dc45ea5e0f3..9c0836a53b7 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -6940,7 +6940,8 @@ find_inc_amount (rtx x, rtx inced)
}
/* Return 1 if register REGNO is the subject of a clobber in insn INSN.
- If SETS is nonzero, also consider SETs. */
+ If SETS is nonzero, also consider SETs. REGNO must refer to a hard
+ register. */
int
regno_clobbered_p (unsigned int regno, rtx insn, enum machine_mode mode,