class.c (push_class): By default, suppress debug output.
authorPer Bothner <per@bothner.com>
Thu, 7 Apr 2005 19:12:53 +0000 (12:12 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 7 Apr 2005 19:12:53 +0000 (12:12 -0700)
* class.c (push_class): By default, suppress debug output.
(finish_class): Enable debug output for classes we're emitting.

From-SVN: r97797

gcc/java/ChangeLog
gcc/java/class.c

index 2a2b56abb48f10cd56f91e2aee634dc97d4a1040..f0a1126d478acd67d708f8a952a469e99e46cea4 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-07  Per Bothner  <per@bothner.com>
+
+       * class.c (push_class): By default, suppress debug output.
+       (finish_class): Enable debug output for classes we're emitting.
+
 2005-04-07  Andrew Haley  <aph@redhat.com>
 
        * gcj.texi: Correct gcj-dbtool instructions.
index 1c7c3ab018ce91dcf148c9c1cd498111f92edbd0..81ba75d7bc8e59d945b05eb3e4330da0284005f9 100644 (file)
@@ -423,6 +423,7 @@ push_class (tree class_type, tree class_name)
 #endif
   CLASS_P (class_type) = 1;
   decl = build_decl (TYPE_DECL, class_name, class_type);
+  TYPE_DECL_SUPPRESS_DEBUG (decl) = 1;
 
   /* dbxout needs a DECL_SIZE if in gstabs mode */
   DECL_SIZE (decl) = integer_zero_node;
@@ -1906,6 +1907,7 @@ finish_class (void)
   java_expand_catch_classes (current_class);
 
   current_function_decl = NULL_TREE;
+  TYPE_DECL_SUPPRESS_DEBUG (TYPE_NAME (current_class)) = 0;
   make_class_data (current_class);
   register_class ();
   rest_of_decl_compilation (TYPE_NAME (current_class), 1, 0);