aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1997-09-30 07:20:00 +0000
committerJason Merrill <jason@gcc.gnu.org>1997-09-30 03:20:00 -0400
commitb7067a12bf9c513def8208362d806f7a944ec393 (patch)
treed346c0cc2811b6dede59d270f61948c674e76cf0
parent4f6140be61e7f75fdee7143d259b32ff16a70300 (diff)
downloadgcc-b7067a12bf9c513def8208362d806f7a944ec393.zip
gcc-b7067a12bf9c513def8208362d806f7a944ec393.tar.gz
gcc-b7067a12bf9c513def8208362d806f7a944ec393.tar.bz2
* method.c (synthesize_method): If at_eof, determine our linkage.
From-SVN: r15803
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/method.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index daa044b..944e6c5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 53417b2..6038046 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -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)