aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 6564f8e4169..d71f6674c09 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -38,7 +38,7 @@
#include "output.h"
#include "timevar.h"
#include "debug.h"
-
+#include "treepch.h"
/* There routines provide a modular interface to perform many parsing
operations. They may therefore be used during actual parsing, or
during template instantiation, which may be regarded as a
@@ -1676,7 +1676,7 @@ finish_declarator (declarator, declspecs, attributes,
}
/* Finish a translation unit. */
-
+extern DBM * datafile;
void
finish_translation_unit ()
{
@@ -1690,6 +1690,8 @@ finish_translation_unit ()
finish_fname_decls ();
finish_file ();
+ if (datafile)
+ dbm_close (datafile);
}
/* Finish a template type parameter, specified as AGGR IDENTIFIER.