PR c++/16276
* rtti.c (emit_tinfo_decl): Turn off DECL_ONE_ONLY if typeinfo
is not public.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84215
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR c++/16276
+ * rtti.c (emit_tinfo_decl): Turn off DECL_ONE_ONLY if typeinfo
+ is not public.
+
2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (CLASSTYPE_N_BASECLASSES): Remove.
DECL_EXTERNAL (decl) = 0;
TREE_PUBLIC (decl) = !non_public;
if (non_public)
- DECL_COMDAT (decl) = 0;
+ {
+ DECL_COMDAT (decl) = 0;
+ if (SUPPORTS_ONE_ONLY)
+ DECL_ONE_ONLY (decl) = 0;
+ }
DECL_INITIAL (decl) = var_init;
mark_used (decl);