This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR c++/33871: [4.3 Regression] typeinfo name referenced in ... defined in discarded section


For a symbol in the anonymous namespace, why do we want to mark
it DECL_ONE_ONLY? Isn't a symbol in the anonymous namespace in
2 different files are 2 different symbols?


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

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

--- gcc/cp/decl2.c.typeinfo	2007-11-05 09:08:04.000000000 -0800
+++ gcc/cp/decl2.c	2007-11-05 11:15:36.000000000 -0800
@@ -1704,6 +1704,7 @@ constrain_visibility (tree decl, int vis
       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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]