OSDN Git Service

revert
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1999 06:30:59 +0000 (06:30 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1999 06:30:59 +0000 (06:30 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29471 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c

index 5d8103c..7ab6527 100644 (file)
@@ -8,12 +8,6 @@
        (dump_function_decl): Don't be too talkative about function return
        type variety.
 
-1999-09-16  Jason Merrill  <jason@yorick.cygnus.com>
-
-       * decl.c (saved_scope_p): New fn.
-       * class.c (pushclass): Don't clear class_cache_obstack if we have
-       saved scopes.
-
 1999-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * lex.c (init_cpp_parse): Call xcalloc, not malloc/bzero.
index 3b63503..2c6a03f 100644 (file)
@@ -4499,16 +4499,11 @@ pushclass (type, modify)
       /* Forcibly remove any old class remnants.  */
       invalidate_class_lookup_cache ();
 
-      /* Now, free the obstack on which we cached all the values.
-         We can't do this if we have saved scopes sitting around, since
-        they may have saved previous_class_values.  */
-      if (! saved_scope_p ())
-       {
-         if (class_cache_firstobj)
-           obstack_free (&class_cache_obstack, class_cache_firstobj);
-         class_cache_firstobj 
-           = (char*) obstack_finish (&class_cache_obstack);
-       }
+      /* Now, free the obstack on which we cached all the values.  */
+      if (class_cache_firstobj)
+       obstack_free (&class_cache_obstack, class_cache_firstobj);
+      class_cache_firstobj 
+       = (char*) obstack_finish (&class_cache_obstack);
     }
 
   /* If we're about to enter a nested class, clear
index d8ad184..cd42511 100644 (file)
@@ -2481,12 +2481,6 @@ pop_from_top_level ()
 
   free (s);
 }
-
-int
-saved_scope_p ()
-{
-  return current_saved_scope != NULL;
-}
 \f
 /* Push a definition of struct, union or enum tag "name".
    into binding_level "b".   "type" should be the type node,