This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(C++) patch to finish_file
- To: gcc-patches at gcc dot gnu dot org
- Subject: (C++) patch to finish_file
- From: Jason Merrill <jason at cygnus dot com>
- Date: Thu, 16 Sep 1999 10:48:00 -0700
We have been failing to emit dwarf2 debugging information for the
definitions of static data members since the wrapup_globals overhaul.
1999-09-16 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (finish_file): Also call check_global_declarations for
the pending_statics list.
Index: decl2.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/decl2.c,v
retrieving revision 1.257
diff -c -p -r1.257 decl2.c
*** decl2.c 1999/09/15 22:49:32 1.257
--- decl2.c 1999/09/16 17:46:22
*************** finish_file ()
*** 3632,3639 ****
walk_globals (vtable_decl_p, prune_vtable_vardecl, /*data=*/0);
/* Now, issue warnings about static, but not defined, functions,
! etc. */
walk_namespaces (wrapup_globals_for_namespace, /*data=*/&reconsider);
finish_repo ();
--- 3632,3642 ----
walk_globals (vtable_decl_p, prune_vtable_vardecl, /*data=*/0);
/* Now, issue warnings about static, but not defined, functions,
! 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 ();