Print the names of the hardcoded virtural registers

From-SVN: r28212
This commit is contained in:
Michael Meissner 1999-07-21 23:53:09 +00:00 committed by Michael Meissner
parent d342a2e1eb
commit a6c7a886f4
2 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-07-21 Michael Meissner <meissner@cygnus.com>
* print-rtl.c (print_rtx): Print the names of the virtual
registers.
Wed Jul 21 16:00:32 1999 Nick Clifton <nickc@cygnus.com>
* config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo

View File

@ -1,5 +1,5 @@
/* Print RTL for GNU C Compiler.
Copyright (C) 1987, 1988, 1992, 1997, 1998 Free Software Foundation, Inc.
Copyright (C) 1987, 1988, 1992, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
@ -245,6 +245,22 @@ print_rtx (in_rtx)
fputc (' ', outfile);
DEBUG_PRINT_REG (in_rtx, 0, outfile);
}
else if (GET_CODE (in_rtx) == REG && value <= LAST_VIRTUAL_REGISTER)
{
if (value == VIRTUAL_INCOMING_ARGS_REGNUM)
fprintf (outfile, " %d virtual-incoming-args", value);
else if (value == VIRTUAL_STACK_VARS_REGNUM)
fprintf (outfile, " %d virtual-stack-vars", value);
else if (value == VIRTUAL_STACK_DYNAMIC_REGNUM)
fprintf (outfile, " %d virtual-stack-dynamic", value);
else if (value == VIRTUAL_OUTGOING_ARGS_REGNUM)
fprintf (outfile, " %d virtual-outgoing-args", value);
else if (value == VIRTUAL_CFA_REGNUM)
fprintf (outfile, " %d virtual-cfa", value);
else
fprintf (outfile, " %d virtual-reg-%d", value,
value-FIRST_VIRTUAL_REGISTER);
}
else if (flag_dump_unnumbered
&& (is_insn || GET_CODE (in_rtx) == NOTE))
fputc ('#', outfile);