OSDN Git Service

* dwarf2out.c (dwarf2out_decl): Don't emit anything for types
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Mar 2000 19:59:35 +0000 (19:59 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Mar 2000 19:59:35 +0000 (19:59 +0000)
        with TYPE_DECL_SUPPRESS_DEBUG set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32622 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c

index 16c51d4..fe618c6 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2000-03-18  Richard Henderson  <rth@cygnus.com>
 
        * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
@@ -9,7 +14,7 @@
        (expander_call_insn_operand): Remove.
        (ix86_expand_epilogue): New arg `emit_return' to control return insn.
        * i386.h (PREDICATE_CODES): Update.
-       * i386.md (all call expanders): Remove predicates, remove special       
+       * i386.md (all call expanders): Remove predicates, remove special
        handling for half-pic.
        (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
        (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
index 9fedb94..fb4679c 100644 (file)
@@ -9520,6 +9520,10 @@ dwarf2out_decl (decl)
       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)