This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: (C++) patch to debug info optimization


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]