diff options
author | Michael Meissner <meissner@cygnus.com> | 1999-07-21 23:53:09 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1999-07-21 23:53:09 +0000 |
commit | a6c7a886f4c73309caea4f1eaa3c95a01fa18563 (patch) | |
tree | 1f6cd37b2b784781aada60095964010944243c17 /gcc | |
parent | d342a2e1eb3cb69c77685fbab9c3840ab098887b (diff) | |
download | gcc-a6c7a886f4c73309caea4f1eaa3c95a01fa18563.zip gcc-a6c7a886f4c73309caea4f1eaa3c95a01fa18563.tar.gz gcc-a6c7a886f4c73309caea4f1eaa3c95a01fa18563.tar.bz2 |
Print the names of the hardcoded virtural registers
From-SVN: r28212
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/print-rtl.c | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 858cae9..ffc896a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index e097aad..17a750c 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); |