]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c++/9941 (typeinfo not generated correctly when #pragmas are involved)
authorMark Mitchell <mark@codesourcery.com>
Thu, 5 Feb 2004 01:58:10 +0000 (01:58 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 5 Feb 2004 01:58:10 +0000 (01:58 +0000)
PR c++/9941
* rtti.c (tinfo_base_init): Use import_export_tinfo to decide the
linkage for the typeinfo name string.

From-SVN: r77288

gcc/cp/ChangeLog
gcc/cp/rtti.c

index 5feb18b33d78656d87c4ddf3ac02df8997fbff9a..ae4493a4c800d6f85615ec1c2017ae766dc6149e 100644 (file)
@@ -2,6 +2,12 @@
 
        * error.c, search.c: Update copyright.
 
+2004-02-04  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9941
+       * rtti.c (tinfo_base_init): Use import_export_tinfo to decide the
+       linkage for the typeinfo name string.
+
 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/13969
index a965383ad4e3d5abae4da71a57895bdcb148dda7..0406e8f57eaf794105c55abd33b71d597356d333 100644 (file)
@@ -760,7 +760,7 @@ tinfo_base_init (tree desc, tree target)
     TREE_STATIC (name_decl) = 1;
     DECL_EXTERNAL (name_decl) = 0;
     TREE_PUBLIC (name_decl) = 1;
-    comdat_linkage (name_decl);
+    import_export_tinfo (name_decl, target, typeinfo_in_lib_p (target));
     /* External name of the string containing the type's name has a
        special name.  */
     SET_DECL_ASSEMBLER_NAME (name_decl,
This page took 0.067686 seconds and 5 git commands to generate.