aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/rtti.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2004-07-07 18:29:38 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2004-07-07 11:29:38 -0700
commit4681c50501dd2838e1e1125534d398a381b68862 (patch)
tree41316131aa4263431003b5b53d0cb9580173b4d4 /gcc/cp/rtti.c
parent0e497b6cf53afd5217837a1d42f81e021b1554be (diff)
downloadgcc-4681c50501dd2838e1e1125534d398a381b68862.zip
gcc-4681c50501dd2838e1e1125534d398a381b68862.tar.gz
gcc-4681c50501dd2838e1e1125534d398a381b68862.tar.bz2
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
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r--gcc/cp/rtti.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index c23b186..8e0b962 100644
--- a/gcc/cp/rtti.c
+++ b/gcc/cp/rtti.c
@@ -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);