]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rtti.c (synthesize_tinfo_fn): Call import_export_decl here.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 13 Nov 1998 19:40:13 +0000 (19:40 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 13 Nov 1998 19:40:13 +0000 (14:40 -0500)
* rtti.c (synthesize_tinfo_fn): Call import_export_decl here.
(get_tinfo_fn): Not here.

From-SVN: r23643

gcc/cp/ChangeLog
gcc/cp/rtti.c

index bc24d5ce6e08431ca1662dc540d64e27733f981c..ef3d9374a82610c8ec4a05c445e6eef7b6410d77 100644 (file)
@@ -1,3 +1,8 @@
+1998-11-13  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * rtti.c (synthesize_tinfo_fn): Call import_export_decl here.
+       (get_tinfo_fn): Not here.
+
 1998-11-08  Mark Mitchell  <mark@markmitchell.com>
 
        * decl.c (grokdeclarator): Tighten checks for invalid
index 0087bc394678a4399172d812e41468c1463b1d71..a522dc6310108738ad2ed3640254a1062de217b7 100644 (file)
@@ -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 ();