OSDN Git Service

PR c++/9941
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Feb 2004 01:58:10 +0000 (01:58 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Feb 2004 01:58:10 +0000 (01:58 +0000)
* rtti.c (tinfo_base_init): Use import_export_tinfo to decide the
linkage for the typeinfo name string.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77288 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 5feb18b..ae4493a 100644 (file)
@@ -4,6 +4,12 @@
 
 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
        * cp-tree.h (fold_non_dependent_expr): New function.
        * parser.c (cp_parser_fold_non_dependent_expr): Remove.
index a965383..0406e8f 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,