Print the names of the hardcoded virtural registers
authorMichael Meissner <meissner@cygnus.com>
Wed, 21 Jul 1999 23:53:09 +0000 (23:53 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Wed, 21 Jul 1999 23:53:09 +0000 (23:53 +0000)
From-SVN: r28212

gcc/ChangeLog
gcc/print-rtl.c

index 858cae90ebe4c795613ab114a02ecdbbbab8ec79..ffc896a14bfaaa4643acf37784d6bff0744a94ed 100644 (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
index e097aadfe482e5b87606b46e6ab708af4e31d0d2..17a750ce6945b085a16cfa961418650f3f8cf06c 100644 (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);