objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before calling instantiate_...
authorMatt Austern <austern@apple.com>
Fri, 28 Jan 2005 05:54:55 +0000 (05:54 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Fri, 28 Jan 2005 05:54:55 +0000 (05:54 +0000)
        * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before
        calling instantiate_pending_templates.

From-SVN: r94362

gcc/objc/ChangeLog
gcc/objc/objc-act.c

index 5d311f1ff00fdb00b9ac0077a85044c20361a9f5..377e1eaf801ab4a275e4643b431bd3e7f8eef760 100644 (file)
@@ -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
index 8fd6257915eae92932d48fe5265ce00681ddd424..71748166efbcade332fdb90b1df696b5067a2473 100644 (file)
@@ -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