re PR c++/16276 ([3.4 only] G++ generates local references to linkonce sections)
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 7 Jul 2004 18:29:38 +0000 (18:29 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 7 Jul 2004 18:29:38 +0000 (11:29 -0700)
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

gcc/cp/ChangeLog
gcc/cp/rtti.c

index 488d0377a00936ee950e91aba526ee2a50ae31c6..851cd265f63f2d91f8ab2fc7c67dbef33ae7fc82 100644 (file)
@@ -1,3 +1,9 @@
+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.
index c23b186e1780198deb45ee382de1c309235a21d6..8e0b9622a57a390767fafd5737fe1c11a0c22638 100644 (file)
@@ -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);