re PR c++/7320 (g++ 3.2 relocation problem)
authorScott Snyder <snyder@fnal.gov>
Wed, 17 Jul 2002 11:46:38 +0000 (11:46 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 17 Jul 2002 11:46:38 +0000 (11:46 +0000)
PR c++/7320
* rtti.c (get_tinfo_decl): Set DECL_COMDAT.

From-SVN: r55516

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

index 7042e77e153b0837bbf738bb3b3dbc2ef2c91da6..ea8e39c27e44c4f23e44c19daa36c48ad6bf362c 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 676725027cdb957e6ba62d84f43b148c1e0280b0..0584d60785c49be112ec757d94aafa361046d02b 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);