aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/print-tree.c15
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5a9024d..cdc5671 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-02-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
+ (print_node): Likewise.
+ Print TYPE_SIZES_GIMPLIFIED.
+
2005-02-24 Hans-Peter Nilsson <hp@axis.com>
* config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
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))