OSDN Git Service

* Makefile.in (c-parse.o, c-common.o): Update dependencies.
[pf3gnuchains/gcc-fork.git] / gcc / c-common.c
index 6b6b36b..dde1af3 100644 (file)
@@ -30,6 +30,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "ggc.h"
 #include "expr.h"
 #include "c-common.h"
+#include "diagnostic.h"
 #include "tm_p.h"
 #include "obstack.h"
 #include "c-lex.h"
@@ -3889,6 +3890,17 @@ c_common_lang_init (filename)
   return filename;
 }
 
+/* Common finish hook for the C, ObjC and C++ front ends.  */
+void
+c_common_finish ()
+{
+  cpp_finish (parse_in);
+
+  /* For performance, avoid tearing down cpplib's internal structures.
+     Call cpp_errors () instead of cpp_destroy ().  */
+  errorcount += cpp_errors (parse_in);
+}
+
 static void
 c_init_attributes ()
 {