]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* method.c (synthesize_method): If at_eof, determine our linkage.
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 30 Sep 1997 07:20:00 +0000 (07:20 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 30 Sep 1997 07:20:00 +0000 (03:20 -0400)
From-SVN: r15803

gcc/cp/ChangeLog
gcc/cp/method.c

index daa044b043b8d70cd915ad8ec21e5e6fe26192ca..944e6c5ae66efe61682616ffd0817a112e26f94f 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep 30 00:18:26 1997  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * method.c (synthesize_method): If at_eof, determine our linkage.
+
 1997-09-29  Paul Eggert  <eggert@twinsun.com>
 
        * lex.c (real_yylex): Treat `$' just like `_', except issue a
index 53417b2dbf07b9e1d41d3ba200231f7a3d2a9012..60380460ef528d148b644100cf838dffe19d6ab8 100644 (file)
@@ -2177,6 +2177,9 @@ synthesize_method (fndecl)
   int nested = (current_function_decl != NULL_TREE);
   tree context = hack_decl_function_context (fndecl);
 
+  if (at_eof)
+    import_export_decl (fndecl);
+
   if (! context)
     push_to_top_level ();
   else if (nested)