From: Michael Meissner Date: Wed, 21 Jul 1999 23:53:09 +0000 (+0000) Subject: Print the names of the hardcoded virtural registers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6c7a886f4c73309caea4f1eaa3c95a01fa18563;p=gcc.git Print the names of the hardcoded virtural registers From-SVN: r28212 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 858cae90ebe..ffc896a14bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1999-07-21 Michael Meissner + + * print-rtl.c (print_rtx): Print the names of the virtual + registers. + Wed Jul 21 16:00:32 1999 Nick Clifton * config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index e097aadfe48..17a750ce694 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -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);