jump.c (redirect_exp_1): If nlabel is a NULL pointer create a RETURN rtx...

* jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
	RETURN rtx, and not a LABEL_REF containing a NULL pointer.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>

From-SVN: r95830
This commit is contained in:
Roger Sayle 2005-03-03 14:16:05 +00:00 committed by Roger Sayle
parent 442dca704c
commit 9550206bcb
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-03-03 Roger Sayle <roger@eyesopen.com>
Andrew Pinski <pinskia@physics.uc.edu>
* jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
RETURN rtx, and not a LABEL_REF containing a NULL pointer.
2005-03-03 Hans-Peter Nilsson <hp@axis.com>
Describe special registers SRP and MOF as allocatable registers.

View File

@ -1539,7 +1539,10 @@ redirect_exp_1 (rtx *loc, rtx olabel, rtx nlabel, rtx insn)
}
else if (code == RETURN && olabel == 0)
{
x = gen_rtx_LABEL_REF (VOIDmode, nlabel);
if (nlabel)
x = gen_rtx_LABEL_REF (VOIDmode, nlabel);
else
x = gen_rtx_RETURN (VOIDmode);
if (loc == &PATTERN (insn))
x = gen_rtx_SET (VOIDmode, pc_rtx, x);
validate_change (insn, loc, x, 1);