OSDN Git Service

* flow.c (clear_log_links): Use free_INSN_LIST_list, not
[pf3gnuchains/gcc-fork.git] / gcc / print-tree.c
index 7e49ee0..f4476ba 100644 (file)
@@ -1,23 +1,23 @@
 /* Prints out tree in human readable form - GNU C-compiler
-   Copyright (C) 1990, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
+   Copyright (C) 1990, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    Free Software Foundation, Inc.
 
-This file is part of GNU CC.
+This file is part of GCC.
 
-GNU CC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
 
-GNU CC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
 
 You should have received a copy of the GNU General Public License
-along with GNU CC; see the file COPYING.  If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.  */
+along with GCC; see the file COPYING.  If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.  */
 
 
 #include "config.h"
@@ -325,7 +325,9 @@ print_node (file, prefix, node, indent)
        fputs (" common", file);
       if (DECL_EXTERNAL (node))
        fputs (" external", file);
-      if (DECL_REGISTER (node))
+      if (DECL_REGISTER (node) && TREE_CODE (node) != FIELD_DECL
+         && TREE_CODE (node) != FUNCTION_DECL
+         && TREE_CODE (node) != LABEL_DECL)
        fputs (" regdecl", file);
       if (DECL_NONLOCAL (node))
        fputs (" nonlocal", file);
@@ -339,14 +341,20 @@ print_node (file, prefix, node, indent)
        fputs (" built-in", file);
       if (TREE_CODE (node) == FUNCTION_DECL && DECL_BUILT_IN_NONANSI (node))
        fputs (" built-in-nonansi", file);
+      if (TREE_CODE (node) == FUNCTION_DECL && DECL_NO_STATIC_CHAIN (node))
+       fputs (" no-static-chain", file);
 
       if (TREE_CODE (node) == FIELD_DECL && DECL_PACKED (node))
        fputs (" packed", file);
       if (TREE_CODE (node) == FIELD_DECL && DECL_BIT_FIELD (node))
        fputs (" bit-field", file);
+      if (TREE_CODE (node) == FIELD_DECL && DECL_NONADDRESSABLE_P (node))
+       fputs (" nonaddressable", file);
 
       if (TREE_CODE (node) == LABEL_DECL && DECL_TOO_LATE (node))
        fputs (" too-late", file);
+      if (TREE_CODE (node) == LABEL_DECL && DECL_ERROR_ISSUED (node))
+       fputs (" error-issued", file);
 
       if (TREE_CODE (node) == VAR_DECL && DECL_IN_TEXT_SECTION (node))
        fputs (" in-text-section", file);
@@ -400,11 +408,6 @@ print_node (file, prefix, node, indent)
                       DECL_OFFSET_ALIGN (node));
            }
        }
-      else if (DECL_INLINE (node))
-       {
-         fprintf (file, " frame_size ");
-         fprintf (file, HOST_WIDE_INT_PRINT_DEC, DECL_FRAME_SIZE (node));
-       }
       else if (DECL_BUILT_IN (node))
        {
          if (DECL_BUILT_IN_CLASS (node) == BUILT_IN_MD)
@@ -430,8 +433,8 @@ print_node (file, prefix, node, indent)
        }
 
       print_node_brief (file, "context", DECL_CONTEXT (node), indent + 4);
-      print_node_brief (file, "machine_attributes",
-                       DECL_MACHINE_ATTRIBUTES (node), indent + 4);
+      print_node_brief (file, "attributes",
+                       DECL_ATTRIBUTES (node), indent + 4);
       print_node_brief (file, "abstract_origin",
                        DECL_ABSTRACT_ORIGIN (node), indent + 4);
 
@@ -441,7 +444,7 @@ print_node (file, prefix, node, indent)
 
       print_lang_decl (file, node, indent);
 
-      if (DECL_RTL (node) != 0)
+      if (DECL_RTL_SET_P (node))
        {
          indent_to (file, indent + 4);
          print_rtl (file, DECL_RTL (node));
@@ -584,14 +587,6 @@ print_node (file, prefix, node, indent)
       break;
 
     case 'b':
-      if (BLOCK_ABSTRACT (node))
-       fprintf (file, " abstract");
-      if (BLOCK_HANDLER_BLOCK (node))
-       fprintf (file, " handler-block");
-      if (BLOCK_DEAD (node))
-       fprintf (file, " dead");
-      fprintf (file, " block-number %d", BLOCK_NUMBER (node));
-
       print_node (file, "vars", BLOCK_VARS (node), indent + 4);
       print_node (file, "supercontext", BLOCK_SUPERCONTEXT (node), indent + 4);
       print_node (file, "subblocks", BLOCK_SUBBLOCKS (node), indent + 4);
@@ -745,11 +740,6 @@ print_node (file, prefix, node, indent)
              }
          break;
 
-       case OP_IDENTIFIER:
-         print_node (file, "op1", TREE_PURPOSE (node), indent + 4);
-         print_node (file, "op2", TREE_VALUE (node), indent + 4);
-         break;
-
        default:
          if (TREE_CODE_CLASS (TREE_CODE (node)) == 'x')
            lang_print_xnode (file, node, indent);