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]

Patch to dwarf2out_decl


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)

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