emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to a label before updating its usage count.

* emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
	a label before updating its usage count.

From-SVN: r77640
This commit is contained in:
Richard Sandiford 2004-02-11 08:06:00 +00:00 committed by Richard Sandiford
parent d318a8ba74
commit 7537fc907c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-02-11 Richard Sandiford <rsandifo@redhat.com>
* emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
a label before updating its usage count.
2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
* doc/install.texi: Remove extra cd.

View File

@ -3133,7 +3133,7 @@ mark_label_nuses (rtx x)
const char *fmt;
code = GET_CODE (x);
if (code == LABEL_REF)
if (code == LABEL_REF && LABEL_P (XEXP (x, 0)))
LABEL_NUSES (XEXP (x, 0))++;
fmt = GET_RTX_FORMAT (code);