Commit 6a4af81f by John David Anglin Committed by John David Anglin

rtti.c (get_tinfo_decl): Call typeinfo_in_lib_p with the type used to build the…

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
parent 359627b5
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.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment