Commit e2213efb by Jason Merrill Committed by Jason Merrill

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
parent 440b3dae
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> 1999-01-18 Jason Merrill <jason@yorick.cygnus.com>
* typeck.c (build_component_ref): Wrap an OVERLOAD around a unique * typeck.c (build_component_ref): Wrap an OVERLOAD around a unique
......
...@@ -2473,10 +2473,6 @@ import_export_vtable (decl, type, final) ...@@ -2473,10 +2473,6 @@ import_export_vtable (decl, type, final)
TREE_PUBLIC (decl) = 1; TREE_PUBLIC (decl) = 1;
DECL_EXTERNAL (decl) = ! CLASSTYPE_VTABLE_NEEDS_WRITING (type); DECL_EXTERNAL (decl) = ! CLASSTYPE_VTABLE_NEEDS_WRITING (type);
DECL_INTERFACE_KNOWN (decl) = 1; DECL_INTERFACE_KNOWN (decl) = 1;
/* Always make vtables weak. */
if (flag_weak)
comdat_linkage (decl);
} }
else else
{ {
...@@ -2645,6 +2641,10 @@ finish_vtable_vardecl (prev, vars) ...@@ -2645,6 +2641,10 @@ finish_vtable_vardecl (prev, vars)
DECL_IGNORED_P (vars) = 1; DECL_IGNORED_P (vars) = 1;
} }
/* Always make vtables weak. */
if (flag_weak)
comdat_linkage (vars);
rest_of_decl_compilation (vars, NULL_PTR, 1, 1); rest_of_decl_compilation (vars, NULL_PTR, 1, 1);
if (flag_vtable_gc) if (flag_vtable_gc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment