]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tweak
authorJason Merrill <jason@gcc.gnu.org>
Fri, 13 Nov 1998 19:45:38 +0000 (14:45 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 13 Nov 1998 19:45:38 +0000 (14:45 -0500)
From-SVN: r23644

gcc/cp/rtti.c

index a522dc6310108738ad2ed3640254a1062de217b7..b93c1ccfc8802cf21ddb665f5e8bb596cb0b394c 100644 (file)
@@ -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 ();