This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: (C++) patch to debug info optimization
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: (C++) patch to debug info optimization
- From: Jason Merrill <jason at cygnus dot com>
- Date: 07 Mar 2000 16:20:27 -0800
- References: <200003040047.QAA20757@casey.cygnus.com>
A slight tweak to that last patch:
2000-03-07 Jason Merrill <jason@casey.cygnus.com>
* search.c (note_debug_info_needed): Walk the bases even if we
weren't deferring the type itself.
Index: search.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/search.c,v
retrieving revision 1.162
diff -c -p -r1.162 search.c
*** search.c 2000/03/04 00:45:24 1.162
--- search.c 2000/03/08 00:19:36
*************** void
*** 3259,3269 ****
note_debug_info_needed (type)
tree type;
{
! if (! TYPE_DECL_SUPPRESS_DEBUG (TYPE_NAME (type)))
! return;
!
! TYPE_DECL_SUPPRESS_DEBUG (TYPE_NAME (type)) = 0;
! rest_of_type_compilation (type, toplevel_bindings_p ());
dfs_walk (TYPE_BINFO (type), dfs_debug_mark, dfs_debug_unmarkedp, 0);
}
--- 3259,3269 ----
note_debug_info_needed (type)
tree type;
{
! if (TYPE_DECL_SUPPRESS_DEBUG (TYPE_NAME (type)))
! {
! TYPE_DECL_SUPPRESS_DEBUG (TYPE_NAME (type)) = 0;
! rest_of_type_compilation (type, toplevel_bindings_p ());
! }
dfs_walk (TYPE_BINFO (type), dfs_debug_mark, dfs_debug_unmarkedp, 0);
}