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]

(C++) debug optimization patch


Oops.  I noticed that we weren't generating debug info properly for
list<int> when I tried to look at the libstdc++ failures...

2000-06-05  Jason Merrill  <jason@casey.soma.redhat.com>

	* search.c (maybe_suppress_debug_info): Don't check
	CLASSTYPE_INTERFACE_ONLY if CLASSTYPE_INTERFACE_KNOWN isn't set.

Index: search.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/search.c,v
retrieving revision 1.181
diff -c -p -r1.181 search.c
*** search.c	2000/05/25 23:27:18	1.181
--- search.c	2000/06/06 00:12:05
*************** maybe_suppress_debug_info (t)
*** 2945,2954 ****
  
    /* If we already know how we're handling this class, handle debug info
       the same way.  */
!   if (CLASSTYPE_INTERFACE_ONLY (t))
!     TYPE_DECL_SUPPRESS_DEBUG (TYPE_MAIN_DECL (t)) = 1;
!   else if (CLASSTYPE_INTERFACE_KNOWN (t))
!     /* Don't set it.  */;
    /* If the class has a vtable, write out the debug info along with
       the vtable.  */
    else if (TYPE_CONTAINS_VPTR_P (t))
--- 2945,2956 ----
  
    /* If we already know how we're handling this class, handle debug info
       the same way.  */
!   if (CLASSTYPE_INTERFACE_KNOWN (t))
!     {
!       if (CLASSTYPE_INTERFACE_ONLY (t))
! 	TYPE_DECL_SUPPRESS_DEBUG (TYPE_MAIN_DECL (t)) = 1;
!       /* else don't set it.  */
!     }
    /* If the class has a vtable, write out the debug info along with
       the vtable.  */
    else if (TYPE_CONTAINS_VPTR_P (t))

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