]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
authorMark Mitchell <mark@codesourcery.com>
Fri, 18 Feb 2000 06:00:36 +0000 (06:00 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 18 Feb 2000 06:00:36 +0000 (06:00 +0000)
* class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
* decl2.c (grokclassfn): Likewise.

From-SVN: r32044

gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl2.c

index 6b0a240c50a37d189297c1991ec401927718caed..50c06a03300d60766b3e5d96a3d6c506c71da746 100644 (file)
@@ -1,5 +1,8 @@
 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
 
+       * class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
+       * decl2.c (grokclassfn): Likewise.
+
        * ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
 
        * decl2.c (lang_decode_option): Don't set default message length
index 2772d4637896860204fcd71d8259f8107544c867..f22319965b70cc67afe773c9c190a4339c7ad7af 100644 (file)
@@ -1428,10 +1428,8 @@ void
 add_method (type, fields, method)
      tree type, *fields, method;
 {
-  /* Setting the DECL_CONTEXT and DECL_VIRTUAL_CONTEXT 
-     here is probably redundant.  */
+  /* Setting the DECL_CONTEXT here is probably redundant.  */
   DECL_CONTEXT (method) = type;
-  DECL_VIRTUAL_CONTEXT (method) = type;
   
   if (fields && *fields)
     *fields = build_overload (method, *fields);
index ff973e809342ea42bf59467c37b57b413e7374d9..440cdcd86bd61b140e0b33864b7f5004dac21295 100644 (file)
@@ -1012,9 +1012,7 @@ grokclassfn (ctype, function, flags, quals)
     }
 
   DECL_ARGUMENTS (function) = last_function_parms;
-  /* First approximations.  */
   DECL_CONTEXT (function) = ctype;
-  DECL_VIRTUAL_CONTEXT (function) = ctype;
 
   if (flags == DTOR_FLAG || DECL_CONSTRUCTOR_P (function))
     maybe_retrofit_in_chrg (function);