aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Austern <austern@apple.com>2005-01-28 05:54:55 +0000
committerMatt Austern <austern@gcc.gnu.org>2005-01-28 05:54:55 +0000
commit86a43457bf2d5035183bf5dda62c4fc336af06a4 (patch)
treebcd1aeedf2d7b6c2d3bf5c442d4d51244322f96c
parent046625fab2932bdc6827d9abdd895824dfbc80eb (diff)
downloadgcc-86a43457bf2d5035183bf5dda62c4fc336af06a4.zip
gcc-86a43457bf2d5035183bf5dda62c4fc336af06a4.tar.gz
gcc-86a43457bf2d5035183bf5dda62c4fc336af06a4.tar.bz2
objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before calling instantiate_pending_templates.
* objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before calling instantiate_pending_templates. From-SVN: r94362
-rw-r--r--gcc/objc/ChangeLog5
-rw-r--r--gcc/objc/objc-act.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog
index 5d311f1..377e1ea 100644
--- a/gcc/objc/ChangeLog
+++ b/gcc/objc/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-27 Matt Austern <austern@apple.com>
+
+ * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before
+ calling instantiate_pending_templates.
+
2005-01-26 Alexander Malmberg <alexander@malmberg.org>
PR objc/18862
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 8fd6257..7174816 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -591,6 +591,7 @@ objc_finish_file (void)
#ifdef OBJCPLUS
/* We need to instantiate templates _before_ we emit ObjC metadata;
if we do not, some metadata (such as selectors) may go missing. */
+ at_eof = 1;
instantiate_pending_templates (0);
#endif