Commit 4681c505 by H.J. Lu Committed by H.J. Lu

re PR c++/16276 ([3.4 only] G++ generates local references to linkonce sections)

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.

From-SVN: r84215
parent 0e497b6c
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.
......
......@@ -1461,7 +1461,11 @@ emit_tinfo_decl (tree decl)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment