diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2000-03-18 14:59:35 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-03-18 14:59:35 -0500 |
commit | 57fb7689e72e0a9bf97beebc102704214f9bcb33 (patch) | |
tree | 4f75b74924a831843d40304dde709e9042af7a06 /gcc/dwarf2out.c | |
parent | 12a41c4810e5f8f435ca2df06ee9c0cc34967f23 (diff) | |
download | gcc-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.c | 4 |
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) |