PR c++/7320
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Jul 2002 11:46:38 +0000 (11:46 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Jul 2002 11:46:38 +0000 (11:46 +0000)
* rtti.c (get_tinfo_decl): Set DECL_COMDAT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55516 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 7042e77..ea8e39c 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-17  Scott Snyder <snyder@fnal.gov>
+
+       PR c++/7320
+       * rtti.c (get_tinfo_decl): Set DECL_COMDAT.
+
 2002-07-12  Mark Mitchell  <mark@codesourcery.com>
 
        * class.c (add_method): Correct handling of conversion operators.
index 6767250..0584d60 100644 (file)
@@ -342,6 +342,7 @@ get_tinfo_decl (type)
       TREE_STATIC (d) = 1;
       DECL_EXTERNAL (d) = 1;
       SET_DECL_ASSEMBLER_NAME (d, name);
+      DECL_COMDAT (d) = 1;
       cp_finish_decl (d, NULL_TREE, NULL_TREE, 0);
 
       pushdecl_top_level (d);