decl2.c (finish_vtable_vardecl): Make vtables comdat here.

* decl2.c (finish_vtable_vardecl): Make vtables comdat here.
	(import_export_vtable): Not here.

From-SVN: r24761
This commit is contained in:
Jason Merrill 1999-01-19 11:14:54 +00:00 committed by Jason Merrill
parent 440b3daeda
commit e2213efb9d
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
1999-01-19 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (finish_vtable_vardecl): Make vtables comdat here.
(import_export_vtable): Not here.
1999-01-18 Jason Merrill <jason@yorick.cygnus.com>
* typeck.c (build_component_ref): Wrap an OVERLOAD around a unique

View File

@ -2473,10 +2473,6 @@ import_export_vtable (decl, type, final)
TREE_PUBLIC (decl) = 1;
DECL_EXTERNAL (decl) = ! CLASSTYPE_VTABLE_NEEDS_WRITING (type);
DECL_INTERFACE_KNOWN (decl) = 1;
/* Always make vtables weak. */
if (flag_weak)
comdat_linkage (decl);
}
else
{
@ -2645,6 +2641,10 @@ finish_vtable_vardecl (prev, vars)
DECL_IGNORED_P (vars) = 1;
}
/* Always make vtables weak. */
if (flag_weak)
comdat_linkage (vars);
rest_of_decl_compilation (vars, NULL_PTR, 1, 1);
if (flag_vtable_gc)