aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-02-06 13:12:56 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-02-06 08:12:56 -0500
commitdf10e9ece3e616cb9474a2a3a4227684a0eb8b37 (patch)
treeef8e147731dc83c431ba068741618712e2aa3a50 /gcc/print-tree.c
parentb5d6a2ff232a9a8086eddef40b2f8b19828b9f88 (diff)
downloadgcc-df10e9ece3e616cb9474a2a3a4227684a0eb8b37.zip
gcc-df10e9ece3e616cb9474a2a3a4227684a0eb8b37.tar.gz
gcc-df10e9ece3e616cb9474a2a3a4227684a0eb8b37.tar.bz2
print-tree.c (print_node, [...]): Print DECL_ARG_TYPE and DECL_ARG_TYPE_AS_WRITTEN.
* print-tree.c (print_node, case PARM_DECL): Print DECL_ARG_TYPE and DECL_ARG_TYPE_AS_WRITTEN. From-SVN: r39492
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r--gcc/print-tree.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index 6625215..a367446 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -447,11 +447,18 @@ print_node (file, prefix, node, indent)
print_rtl (file, DECL_RTL (node));
}
- if (TREE_CODE (node) == PARM_DECL && DECL_INCOMING_RTL (node) != 0)
+ if (TREE_CODE (node) == PARM_DECL)
{
- indent_to (file, indent + 4);
- fprintf (file, "incoming-rtl ");
- print_rtl (file, DECL_INCOMING_RTL (node));
+ print_node (file, "arg-type", DECL_ARG_TYPE (node), indent + 4);
+ print_node (file, "arg-type-as-written",
+ DECL_ARG_TYPE_AS_WRITTEN (node), indent + 4);
+
+ if (DECL_INCOMING_RTL (node) != 0)
+ {
+ indent_to (file, indent + 4);
+ fprintf (file, "incoming-rtl ");
+ print_rtl (file, DECL_INCOMING_RTL (node));
+ }
}
else if (TREE_CODE (node) == FUNCTION_DECL
&& DECL_SAVED_INSNS (node) != 0)