This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(C++) debug optimization patch
- To: gcc-patches at gcc dot gnu dot org
- Subject: (C++) debug optimization patch
- From: Jason Merrill <jason at cygnus dot com>
- Date: Mon, 5 Jun 2000 20:13:40 -0400
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))