This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
GCC-3.3.4 PATCH: PR C++/9941
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: 05 Mar 2004 13:16:28 +0100
- Subject: GCC-3.3.4 PATCH: PR C++/9941
- Organization: Integrable Solutions
This is a backport of a fix that was applied to GCC-3.5.x and
GCC-3.4.x.
-- Gaby
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/ChangeLog,v
retrieving revision 1.3076.2.257
diff -p -r1.3076.2.257 ChangeLog
*** ChangeLog 3 Mar 2004 07:40:29 -0000 1.3076.2.257
--- ChangeLog 5 Mar 2004 12:23:08 -0000
***************
*** 1,3 ****
--- 1,12 ----
+ 2004-03-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ Backport:
+ 2004-02-04 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/9941
+ * rtti.c (tinfo_base_init): Use import_export_tinfo to decide the
+ linkage for the typeinfo name string.
+
2004-02-24 Jason Merrill <jason@redhat.com>
PR c++/13944
Index: rtti.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/rtti.c,v
retrieving revision 1.146.2.2
diff -p -r1.146.2.2 rtti.c
*** rtti.c 20 Jun 2003 01:18:45 -0000 1.146.2.2
--- rtti.c 5 Mar 2004 12:23:08 -0000
*************** tinfo_base_init (desc, target)
*** 761,767 ****
TREE_STATIC (name_decl) = 1;
DECL_EXTERNAL (name_decl) = 0;
TREE_PUBLIC (name_decl) = 1;
! comdat_linkage (name_decl);
/* External name of the string containing the type's name has a
special name. */
SET_DECL_ASSEMBLER_NAME (name_decl,
--- 761,767 ----
TREE_STATIC (name_decl) = 1;
DECL_EXTERNAL (name_decl) = 0;
TREE_PUBLIC (name_decl) = 1;
! import_export_tinfo (name_decl, target, typeinfo_in_lib_p (target));
/* External name of the string containing the type's name has a
special name. */
SET_DECL_ASSEMBLER_NAME (name_decl,