summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2000-03-18 14:59:35 -0500
committerJason Merrill <jason@gcc.gnu.org>2000-03-18 14:59:35 -0500
commit57fb7689e72e0a9bf97beebc102704214f9bcb33 (patch)
tree4f75b74924a831843d40304dde709e9042af7a06 /gcc/dwarf2out.c
parent12a41c4810e5f8f435ca2df06ee9c0cc34967f23 (diff)
downloadgcc-57fb7689e72e0a9bf97beebc102704214f9bcb33.tar.gz
dwarf2out.c (dwarf2out_decl): Don't emit anything for types with TYPE_DECL_SUPPRESS_DEBUG set.
* dwarf2out.c (dwarf2out_decl): Don't emit anything for types with TYPE_DECL_SUPPRESS_DEBUG set. From-SVN: r32622
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 9fedb94f663..fb4679c4773 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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)