PATCH C++: get_tinfo_decl-- call typeinfo_in_lib_p with
John David Anglin
dave@hiauly1.hia.nrc.ca
Tue Oct 2 12:30:00 GMT 2001
> >> OK?
> > This is an obvious patch. (It's obvious to me, is that bestowable? :-)
> >
> > I'd recommend Mark approves it for 3.0.2 as well.
>
> Would one of you please forward the patch to me directly? I'm sure
> it's peachy, but I'd like to peek.
Here it is.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2001-09-27 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.
--- rtti.c.save Mon Sep 24 17:24:05 2001
+++ rtti.c Thu Sep 27 18:01:03 2001
@@ -309,7 +309,7 @@
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);
More information about the Gcc-patches
mailing list