This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to dwarf2out_decl
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch to dwarf2out_decl
- From: Jason Merrill <jason at cygnus dot com>
- Date: Sat, 18 Mar 2000 11:57:04 -0800
If we've decided not to emit full debug info for a type, we shouldn't emit it
at all unless it's needed for another DIE.
2000-03-17 Jason Merrill <jason@casey.cygnus.com>
* dwarf2out.c (dwarf2out_decl): Don't emit anything for types
with TYPE_DECL_SUPPRESS_DEBUG set.
*** dwarf2out.c.~1~ Fri Mar 17 17:11:46 2000
--- dwarf2out.c Fri Mar 17 18:15:45 2000
*************** dwarf2out_decl (decl)
*** 9520,9525 ****
--- 9520,9529 ----
break;
case TYPE_DECL:
+ /* Don't emit stubs for types unless they are needed by other DIEs. */
+ if (TYPE_DECL_SUPPRESS_DEBUG (decl))
+ return;
+
/* Don't bother trying to generate any DIEs to represent any of the
normal built-in types for the language we are compiling. */
if (DECL_SOURCE_LINE (decl) == 0)