diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2001-10-03 15:18:25 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2001-10-03 15:18:25 +0000 |
commit | 6a4af81f9298fdb964aa69806e2a036837ebbe44 (patch) | |
tree | 00e33b9304027042dbec15674b66311b7debee23 /gcc | |
parent | 359627b59774b9b0052e619ed0d1b72ccf4e8702 (diff) | |
download | gcc-6a4af81f9298fdb964aa69806e2a036837ebbe44.zip gcc-6a4af81f9298fdb964aa69806e2a036837ebbe44.tar.gz gcc-6a4af81f9298fdb964aa69806e2a036837ebbe44.tar.bz2 |
rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used to build the declaration instead of...
* rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used
to build the declaration instead of the declaration itself.
From-SVN: r45994
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/rtti.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f4d2d20..c23768e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-10-03 John David Anglin <dave@hiauly1.hia.nrc.ca> + + * rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used + to build the declaration instead of the declaration itself. + 2001-10-02 Jason Merrill <jason_merrill@redhat.com> * spew.c (end_input): No longer static. diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 6cdac79..c91b378 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -309,7 +309,7 @@ get_tinfo_decl (type) TREE_STATIC (d) = 1; DECL_EXTERNAL (d) = 1; TREE_PUBLIC (d) = 1; - if (flag_weak || !typeinfo_in_lib_p (d)) + if (flag_weak || !typeinfo_in_lib_p (type)) comdat_linkage (d); SET_DECL_ASSEMBLER_NAME (d, name); cp_finish_decl (d, NULL_TREE, NULL_TREE, 0); |