diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fe01dd4bffe..9647871b84b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2003-09-14 Geoffrey Keating + + * rtti.c (get_tinfo_decl): Set TREE_PUBLIC for typeinfo decls. + 2003-09-14 Kazu Hirata * ChangeLog: Follow spelling conventions. diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 32d318d6781..c53238f5b52 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -358,8 +358,9 @@ get_tinfo_decl (tree type) TREE_READONLY (d) = 1; TREE_STATIC (d) = 1; DECL_EXTERNAL (d) = 1; - SET_DECL_ASSEMBLER_NAME (d, name); DECL_COMDAT (d) = 1; + TREE_PUBLIC (d) = 1; + SET_DECL_ASSEMBLER_NAME (d, name); pushdecl_top_level_and_finish (d, NULL_TREE);