]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (dwarf2out_decl): Don't emit anything for types with TYPE_DECL_SUPPRESS_D...
authorJason Merrill <jason@gcc.gnu.org>
Sat, 18 Mar 2000 19:59:35 +0000 (14:59 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 18 Mar 2000 19:59:35 +0000 (14:59 -0500)
        * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
        with TYPE_DECL_SUPPRESS_DEBUG set.

From-SVN: r32622

gcc/ChangeLog
gcc/dwarf2out.c

index 16c51d4a231ea4f25aa93e48e46de35d9d05f1f7..fe618c63f60ba2542d54310f5fc4e1be26ee1bea 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 9fedb94f6636c4837599ce93cd8af4e323b6f6fe..fb4679c477376a0e9e45e22b5531f961738ec497 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)