decl2.c (finish_prevtable_vardecl): Check DECL_REALLY_EXTERN for our key method; it might have been inlined by -O3.

* decl2.c (finish_prevtable_vardecl): Check DECL_REALLY_EXTERN
	for our key method; it might have been inlined by -O3.

From-SVN: r15877
This commit is contained in:
Jason Merrill 1997-10-08 07:19:53 +00:00 committed by Jason Merrill
parent ffb690bd08
commit 3bd1e206cb
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Oct 8 00:18:22 1997 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (finish_prevtable_vardecl): Check DECL_REALLY_EXTERN
for our key method; it might have been inlined by -O3.
Tue Oct 7 23:00:12 1997 Mark Mitchell <mmitchell@usa.net>
* decl.c (make_typename_type): Do not try to call lookup_field for

View File

@ -2589,8 +2589,9 @@ finish_prevtable_vardecl (prev, vars)
&& !DECL_ABSTRACT_VIRTUAL_P (method))
{
SET_CLASSTYPE_INTERFACE_KNOWN (ctype);
CLASSTYPE_VTABLE_NEEDS_WRITING (ctype) = ! DECL_EXTERNAL (method);
CLASSTYPE_INTERFACE_ONLY (ctype) = DECL_EXTERNAL (method);
CLASSTYPE_VTABLE_NEEDS_WRITING (ctype)
= ! DECL_REALLY_EXTERN (method);
CLASSTYPE_INTERFACE_ONLY (ctype) = DECL_REALLY_EXTERN (method);
break;
}
}