]> gcc.gnu.org Git - gcc.git/commitdiff
decl2.c (finish_vtable_vardecl): Make vtables comdat here.
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 19 Jan 1999 11:14:54 +0000 (11:14 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 19 Jan 1999 11:14:54 +0000 (06:14 -0500)
* decl2.c (finish_vtable_vardecl): Make vtables comdat here.
(import_export_vtable): Not here.

From-SVN: r24761

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 143ce6c04bc61424e38b1cb70b367202afdbbe55..2b3a14f8c54a132f21297fce755eca4c039f9439 100644 (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
index 9ca09cb985b9326e99d6f4172138b9012a0e610e..303364453a723b8343f8e0b943f2dbfc0f844e2e 100644 (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)
This page took 0.070294 seconds and 5 git commands to generate.