re PR c++/9941 (typeinfo not generated correctly when #pragmas are involved)

PR c++/9941
	* rtti.c (tinfo_base_init): Use import_export_tinfo to decide the
	linkage for the typeinfo name string.

From-SVN: r77288
This commit is contained in:
Mark Mitchell 2004-02-05 01:58:10 +00:00 committed by Mark Mitchell
parent de8a2f8702
commit 6f3d0d2f8d
2 changed files with 7 additions and 1 deletions

View 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

View 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,