Commit 25cff714 by Richard Henderson Committed by Richard Henderson

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
parent 115b5a7e
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> 2001-02-27 Zack Weinberg <zackw@stanford.edu>
* mips/xm-iris4.h: Delete #if 0 block (there since before 1997). * mips/xm-iris4.h: Delete #if 0 block (there since before 1997).
......
...@@ -322,43 +322,52 @@ print_rtx (in_rtx) ...@@ -322,43 +322,52 @@ print_rtx (in_rtx)
break; break;
case 'i': case 'i':
{ if (i == 5 && GET_CODE (in_rtx) == NOTE)
register int value = XINT (in_rtx, i); {
const char *name; /* 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;
if (GET_CODE (in_rtx) == REG && value < FIRST_PSEUDO_REGISTER) if (GET_CODE (in_rtx) == REG && value < FIRST_PSEUDO_REGISTER)
{ {
fputc (' ', outfile); fputc (' ', outfile);
DEBUG_PRINT_REG (in_rtx, 0, 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); if (value == VIRTUAL_INCOMING_ARGS_REGNUM)
else if (value == VIRTUAL_STACK_VARS_REGNUM) fprintf (outfile, " %d virtual-incoming-args", value);
fprintf (outfile, " %d virtual-stack-vars", value); else if (value == VIRTUAL_STACK_VARS_REGNUM)
else if (value == VIRTUAL_STACK_DYNAMIC_REGNUM) fprintf (outfile, " %d virtual-stack-vars", value);
fprintf (outfile, " %d virtual-stack-dynamic", value); else if (value == VIRTUAL_STACK_DYNAMIC_REGNUM)
else if (value == VIRTUAL_OUTGOING_ARGS_REGNUM) fprintf (outfile, " %d virtual-stack-dynamic", value);
fprintf (outfile, " %d virtual-outgoing-args", value); else if (value == VIRTUAL_OUTGOING_ARGS_REGNUM)
else if (value == VIRTUAL_CFA_REGNUM) fprintf (outfile, " %d virtual-outgoing-args", value);
fprintf (outfile, " %d virtual-cfa", value); else if (value == VIRTUAL_CFA_REGNUM)
else fprintf (outfile, " %d virtual-cfa", value);
fprintf (outfile, " %d virtual-reg-%d", value, else
value-FIRST_VIRTUAL_REGISTER); fprintf (outfile, " %d virtual-reg-%d", value,
} value-FIRST_VIRTUAL_REGISTER);
else if (flag_dump_unnumbered }
&& (is_insn || GET_CODE (in_rtx) == NOTE)) else if (flag_dump_unnumbered
fputc ('#', outfile); && (is_insn || GET_CODE (in_rtx) == NOTE))
else fputc ('#', outfile);
fprintf (outfile, " %d", value); else
fprintf (outfile, " %d", value);
if (is_insn && &INSN_CODE (in_rtx) == &XINT (in_rtx, i)
&& XINT (in_rtx, i) >= 0 if (is_insn && &INSN_CODE (in_rtx) == &XINT (in_rtx, i)
&& (name = get_insn_name (XINT (in_rtx, i))) != NULL) && XINT (in_rtx, i) >= 0
fprintf (outfile, " {%s}", name); && (name = get_insn_name (XINT (in_rtx, i))) != NULL)
sawclose = 0; fprintf (outfile, " {%s}", name);
} sawclose = 0;
}
break; break;
/* Print NOTE_INSN names rather than integer codes. */ /* Print NOTE_INSN names rather than integer codes. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment