From: Jason Merrill Date: Fri, 13 Nov 1998 19:40:13 +0000 (+0000) Subject: rtti.c (synthesize_tinfo_fn): Call import_export_decl here. X-Git-Tag: prereleases/egcs-1.1.1-prerelease-3~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a97e7f786af5948019734d137d59fe38de1c1b0;p=thirdparty%2Fgcc.git rtti.c (synthesize_tinfo_fn): Call import_export_decl here. * rtti.c (synthesize_tinfo_fn): Call import_export_decl here. (get_tinfo_fn): Not here. From-SVN: r23643 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index bc24d5ce6e08..ef3d9374a826 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-11-13 Jason Merrill + + * rtti.c (synthesize_tinfo_fn): Call import_export_decl here. + (get_tinfo_fn): Not here. + 1998-11-08 Mark Mitchell * decl.c (grokdeclarator): Tighten checks for invalid diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 0087bc394678..a522dc631010 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -373,9 +373,6 @@ get_tinfo_fn (type) make_function_rtl (d); assemble_external (d); mark_inline_for_output (d); - if (at_eof) - import_export_decl (d); - pop_obstacks (); return d; @@ -1075,6 +1072,9 @@ synthesize_tinfo_fn (fndecl) DECL_ALIGN (tdecl) = TYPE_ALIGN (ptr_type_node); cp_finish_decl (tdecl, NULL_TREE, NULL_TREE, 0, 0); + if (at_eof) + import_export_decl (fndecl); + start_function (NULL_TREE, fndecl, NULL_TREE, 1); store_parm_decls (); clear_last_expr ();