re PR c++/33871 (typeinfo name referenced in ... defined in discarded section)

2007-11-05  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/33871
	* decl2.c (constrain_visibility): Clear DECL_ONE_ONLY if marked
	local.

From-SVN: r129911
This commit is contained in:
H.J. Lu 2007-11-05 23:11:57 +00:00 committed by H.J. Lu
parent d03b2e6b4d
commit 565603f84a
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-11-05 H.J. Lu <hongjiu.lu@intel.com>
PR c++/33871
* decl2.c (constrain_visibility): Clear DECL_ONE_ONLY if marked
local.
2007-11-05 Douglas Gregor <doug.gregor@gmail.com>
PR c++/33996

View File

@ -1704,6 +1704,7 @@ constrain_visibility (tree decl, int visibility)
if (!DECL_EXTERN_C_P (decl))
{
TREE_PUBLIC (decl) = 0;
DECL_ONE_ONLY (decl) = 0;
DECL_INTERFACE_KNOWN (decl) = 1;
if (DECL_LANG_SPECIFIC (decl))
DECL_NOT_REALLY_EXTERN (decl) = 1;