* print-tree.c (print_node): Handle SSA_NAME.
authorRichard Henderson <rth@redhat.com>
Thu, 15 Jul 2004 00:38:43 +0000 (17:38 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 15 Jul 2004 00:38:43 +0000 (17:38 -0700)
From-SVN: r84729

gcc/ChangeLog
gcc/print-tree.c

index e9f8b71bc6206d62146775ab509603cc13c5acbd..6ada0787ab9f6a4719637139823987f2cb8b26bd 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-14  Richard Henderson  <rth@redhat.com>
+
+       * print-tree.c (print_node): Handle SSA_NAME.
+
 2004-07-14  James E Wilson  <wilson@specifixinc.com>
 
        PR target/16325
index 01e57026153b0f0cd657b261a8223333c5ef0329..482f67c1bc4777a022e75c30324dd4d30677cdcc 100644 (file)
@@ -731,6 +731,32 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
                      BLOCK_ABSTRACT_ORIGIN (node), indent + 4);
          break;
 
+       case SSA_NAME:
+         print_node_brief (file, "var", SSA_NAME_VAR (node), indent + 4);
+         print_node_brief (file, "def_stmt",
+                           SSA_NAME_DEF_STMT (node), indent + 4);
+
+         indent_to (file, indent + 4);
+         fprintf (file, "version %u", SSA_NAME_VERSION (node));
+         if (SSA_NAME_OCCURS_IN_ABNORMAL_PHI (node))
+           fprintf (file, " in-abnormal-phi");
+         if (SSA_NAME_IN_FREE_LIST (node))
+           fprintf (file, " in-free-list");
+
+         if (SSA_NAME_PTR_INFO (node)
+             || SSA_NAME_VALUE (node)
+             || SSA_NAME_AUX (node))
+           {
+             indent_to (file, indent + 3);
+             if (SSA_NAME_PTR_INFO (node))
+               fprintf (file, " ptr-info %p", SSA_NAME_PTR_INFO (node));
+             if (SSA_NAME_VALUE (node))
+               fprintf (file, " value %p", SSA_NAME_VALUE (node));
+             if (SSA_NAME_AUX (node))
+               fprintf (file, " aux %p", SSA_NAME_AUX (node));
+           }
+         break;
+
        default:
          if (TREE_CODE_CLASS (TREE_CODE (node)) == 'x')
            lang_hooks.print_xnode (file, node, indent);