class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
* class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT. * decl2.c (grokclassfn): Likewise. From-SVN: r32044
This commit is contained in:
parent
8dd8ff2e98
commit
930b1f40d0
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue