print-rtl.c (print_rtx): Don't print field five on NOTEs other than NOTE_INSN_DELETED_LABEL.

* print-rtl.c (print_rtx) [i]: Don't print field five on
        NOTEs other than NOTE_INSN_DELETED_LABEL.

From-SVN: r40110
This commit is contained in:
Richard Henderson 2001-02-27 20:26:57 -08:00 committed by Richard Henderson
parent 115b5a7e47
commit 25cff714f3
2 changed files with 49 additions and 35 deletions

View File

@ -1,3 +1,8 @@
2001-02-27 Richard Henderson <rth@redhat.com>
* print-rtl.c (print_rtx) [i]: Don't print field five on
NOTEs other than NOTE_INSN_DELETED_LABEL.
2001-02-27 Zack Weinberg <zackw@stanford.edu>
* mips/xm-iris4.h: Delete #if 0 block (there since before 1997).

View File

@ -322,6 +322,14 @@ print_rtx (in_rtx)
break;
case 'i':
if (i == 5 && GET_CODE (in_rtx) == NOTE)
{
/* This field is only used for NOTE_INSN_DELETED_LABEL, and
other times often contains garbage from INSN->NOTE death. */
if (NOTE_LINE_NUMBER (in_rtx) == NOTE_INSN_DELETED_LABEL)
fprintf (outfile, " %d", XINT (in_rtx, i));
}
else
{
register int value = XINT (in_rtx, i);
const char *name;
@ -331,7 +339,8 @@ print_rtx (in_rtx)
fputc (' ', outfile);
DEBUG_PRINT_REG (in_rtx, 0, outfile);
}
else if (GET_CODE (in_rtx) == REG && value <= LAST_VIRTUAL_REGISTER)
else if (GET_CODE (in_rtx) == REG
&& value <= LAST_VIRTUAL_REGISTER)
{
if (value == VIRTUAL_INCOMING_ARGS_REGNUM)
fprintf (outfile, " %d virtual-incoming-args", value);