From: Jason Merrill Date: Fri, 13 Nov 1998 19:45:38 +0000 (-0500) Subject: tweak X-Git-Tag: prereleases/egcs-1.1.1-prerelease-3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e1c6151d5519bb89df2a6d829c5468832f93410;p=thirdparty%2Fgcc.git tweak From-SVN: r23644 --- diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index a522dc631010..b93c1ccfc880 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -1062,9 +1062,16 @@ synthesize_tinfo_fn (fndecl) tree fndecl; { tree type = TREE_TYPE (DECL_NAME (fndecl)); - tree tmp, addr; + tree tmp, addr, tdecl; - tree tdecl = get_tinfo_var (type); + if (at_eof) + { + import_export_decl (fndecl); + if (DECL_REALLY_EXTERN (fndecl)) + return; + } + + tdecl = get_tinfo_var (type); DECL_EXTERNAL (tdecl) = 0; TREE_STATIC (tdecl) = 1; DECL_COMMON (tdecl) = 1; @@ -1072,9 +1079,6 @@ 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 ();