aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2005-02-24 18:53:40 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2005-02-24 13:53:40 -0500
commit4961152d4362629a5d6892132bef11779052517b (patch)
treec4ce911ebb5caaae4abf73b1809c258b0b58fd37 /gcc/print-tree.c
parentcb9e4f55b0bfcbf3b25213774193d4a4bb8a8342 (diff)
downloadgcc-4961152d4362629a5d6892132bef11779052517b.zip
gcc-4961152d4362629a5d6892132bef11779052517b.tar.gz
gcc-4961152d4362629a5d6892132bef11779052517b.tar.bz2
print-tree.c (print_node_brief): Print LABEL_DECL_UID.
* print-tree.c (print_node_brief): Print LABEL_DECL_UID. (print_node): Likewise. Print TYPE_SIZES_GIMPLIFIED. From-SVN: r95507
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r--gcc/print-tree.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index 8d8cbff..41d029a 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -79,6 +79,12 @@ print_node_brief (FILE *file, const char *prefix, tree node, int indent)
{
if (DECL_NAME (node))
fprintf (file, " %s", IDENTIFIER_POINTER (DECL_NAME (node)));
+ else if (TREE_CODE (node) == LABEL_DECL
+ && LABEL_DECL_UID (node) != -1)
+ fprintf (file, " L." HOST_WIDE_INT_PRINT_DEC, LABEL_DECL_UID (node));
+ else
+ fprintf (file, " %c.%u", TREE_CODE (node) == CONST_DECL ? 'C' : 'D',
+ DECL_UID (node));
}
else if (class == tcc_type)
{
@@ -217,6 +223,12 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
{
if (DECL_NAME (node))
fprintf (file, " %s", IDENTIFIER_POINTER (DECL_NAME (node)));
+ else if (TREE_CODE (node) == LABEL_DECL
+ && LABEL_DECL_UID (node) != -1)
+ fprintf (file, " L." HOST_WIDE_INT_PRINT_DEC, LABEL_DECL_UID (node));
+ else
+ fprintf (file, " %c.%u", TREE_CODE (node) == CONST_DECL ? 'C' : 'D',
+ DECL_UID (node));
}
else if (class == tcc_type)
{
@@ -252,6 +264,9 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
fputs (" readonly", file);
if (!TYPE_P (node) && TREE_CONSTANT (node))
fputs (" constant", file);
+ else if (TYPE_P (node) && TYPE_SIZES_GIMPLIFIED (node))
+ fputs (" sizes-gimplified", file);
+
if (TREE_INVARIANT (node))
fputs (" invariant", file);
if (TREE_ADDRESSABLE (node))