(C++) patch to debug info optimization

Jason Merrill jason@cygnus.com
Tue Mar 7 16:20:00 GMT 2000


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);
  }


More information about the Gcc-patches mailing list