aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-09-16 17:48:20 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-09-16 13:48:20 -0400
commit033ed3404f26189e0a8dad325c17473ec9b95f29 (patch)
treeafed35b8722bb235ab4e301d19407cea92eca270
parentc2e3db9254f058830d2ef7106d74d20a7fa56c75 (diff)
downloadgcc-033ed3404f26189e0a8dad325c17473ec9b95f29.zip
gcc-033ed3404f26189e0a8dad325c17473ec9b95f29.tar.gz
gcc-033ed3404f26189e0a8dad325c17473ec9b95f29.tar.bz2
decl2.c (finish_file): Also call check_global_declarations for the pending_statics list.
* decl2.c (finish_file): Also call check_global_declarations for the pending_statics list. From-SVN: r29458
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl2.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 69250a4..ddc34aa 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+1999-09-16 Jason Merrill <jason@yorick.cygnus.com>
+
+ * decl2.c (finish_file): Also call check_global_declarations for
+ the pending_statics list.
+
1999-09-15 Jason Merrill <jason@yorick.cygnus.com>
* lex.c (cp_pragma_implementation): Allow #pragma implementation
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 5ba6c6d..4f589d3 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -3632,8 +3632,11 @@ finish_file ()
walk_globals (vtable_decl_p, prune_vtable_vardecl, /*data=*/0);
/* Now, issue warnings about static, but not defined, functions,
- etc. */
+ etc., and emit debugging information. */
walk_namespaces (wrapup_globals_for_namespace, /*data=*/&reconsider);
+ if (pending_statics)
+ check_global_declarations (&VARRAY_TREE (pending_statics, 0),
+ pending_statics_used);
finish_repo ();