OSDN Git Service

* stor-layout.c (layout_type): Complain if an array's size can
[pf3gnuchains/gcc-fork.git] / gcc / c-dump.c
index 72de67c..cb2afb1 100644 (file)
@@ -2,22 +2,22 @@
    Copyright (C) 1999, 2000 Free Software Foundation, Inc.
    Written by Mark Mitchell <mark@codesourcery.com>
 
-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"
 #include "system.h"
@@ -139,9 +139,9 @@ queue_and_dump_type (di, t)
 }
 
 /* Dump column control */
-#define SOL_COLUMN 25          /* Start of line column. */
-#define EOL_COLUMN 55          /* End of line column. */
-#define COLUMN_ALIGNMENT 15    /* Alignment. */
+#define SOL_COLUMN 25          /* Start of line column.  */
+#define EOL_COLUMN 55          /* End of line column.  */
+#define COLUMN_ALIGNMENT 15    /* Alignment.  */
 
 /* Insert a new line in the dump output, and indent to an appropriate
    place to start printing more fields.  */
@@ -736,7 +736,7 @@ dequeue_and_dump (di)
 }
 
 /* Return non-zero if FLAG has been specified for the dump, and NODE
-   is not the root node of the dump. */
+   is not the root node of the dump.  */
 
 int dump_flag (di, flag, node)
      dump_info_p di;
@@ -786,28 +786,29 @@ dump_node (t, flags, stream)
   splay_tree_delete (di.nodes);
 }
 
-/* Define a tree dump switch. */
+/* Define a tree dump switch.  */
 struct dump_file_info
 {
-  const char *suffix;          /* suffix to give output file. */
+  const char *suffix;          /* suffix to give output file.  */
   const char *swtch;           /* command line switch */
   int flags;                   /* user flags */
   int state;                   /* state of play */
 };
 
-/* Table of tree dump switches. */
+/* Table of tree dump switches.  */
 static struct dump_file_info dump_files[TDI_end] =
 {
   {".tu", "dump-translation-unit", 0, 0},
+  {".class", "dump-class-hierarchy", 0, 0},
   {".original", "dump-ast-original", 0, 0},
   {".optimized", "dump-ast-optimized", 0, 0},
-  {".class", "dump-class-hierarchy", 0, 0},
+  {".inlined", "dump-ast-inlined", 0, 0},
 };
 
 /* Begin a tree dump for PHASE. Stores any user supplied flag in
    *FLAG_PTR and returns a stream to write to. If the dump is not
    enabled, returns NULL.
-   Multiple calls will reopen and append to the dump file. */
+   Multiple calls will reopen and append to the dump file.  */
 
 FILE *
 dump_begin (phase, flag_ptr)
@@ -833,18 +834,29 @@ dump_begin (phase, flag_ptr)
   return stream;
 }
 
-/* Returns non-zero if tree dump PHASE is enabled. */
+/* Returns non-zero if tree dump PHASE is enabled.  */
 
-int dump_enabled_p (phase)
+int
+dump_enabled_p (phase)
      enum tree_dump_index phase;
 {
   return dump_files[phase].state;
 }
 
+/* Returns the switch name of PHASE.  */
+
+const char *
+dump_flag_name (phase)
+     enum tree_dump_index phase;
+{
+  return dump_files[phase].swtch;
+}
+
 /* Finish a tree dump for PHASE. STREAM is the stream created by
-   dump_begin. */
+   dump_begin.  */
 
-void dump_end (phase, stream)
+void
+dump_end (phase, stream)
      enum tree_dump_index phase ATTRIBUTE_UNUSED;
      FILE *stream;
 {
@@ -852,9 +864,10 @@ void dump_end (phase, stream)
 }
 
 /* Parse ARG as a dump switch. Return non-zero if it is, and store the
-   relevant details in the dump_files array. */
+   relevant details in the dump_files array.  */
 
-int dump_switch_p (arg)
+int
+dump_switch_p (arg)
      const char *arg;
 {
   unsigned ix;