aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-02-18 06:00:36 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-02-18 06:00:36 +0000
commit930b1f40d0f3b4ad09d916f2a6da33f9d20dfad9 (patch)
tree87e2ec5b6a18d38a437c5e1d9462736d069b5d35 /gcc/cp
parent8dd8ff2e98f41db622ffd2def14d2ed2a4756411 (diff)
downloadgcc-930b1f40d0f3b4ad09d916f2a6da33f9d20dfad9.zip
gcc-930b1f40d0f3b4ad09d916f2a6da33f9d20dfad9.tar.gz
gcc-930b1f40d0f3b4ad09d916f2a6da33f9d20dfad9.tar.bz2
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
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/class.c4
-rw-r--r--gcc/cp/decl2.c2
3 files changed, 4 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6b0a240..50c06a0 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 2772d46..f223199 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -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);
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index ff973e8..440cdcd 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -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);