aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1997-08-26 18:05:23 +0000
committerJeff Law <law@gcc.gnu.org>1997-08-26 12:05:23 -0600
commitd4ef15f2cad1ffd9f929f5e5497b6a036fee01c0 (patch)
treee942d2b4db5b165e686fba18d1fdd2cee0ab53f2 /gcc/dwarfout.c
parentd40431299de9095cd593fd118d5dbf2a3f47f4ac (diff)
downloadgcc-d4ef15f2cad1ffd9f929f5e5497b6a036fee01c0.zip
gcc-d4ef15f2cad1ffd9f929f5e5497b6a036fee01c0.tar.gz
gcc-d4ef15f2cad1ffd9f929f5e5497b6a036fee01c0.tar.bz2
dwarfout.c (dwarfout_file_scope_decl, [...]): Check TYPE_DECL_IS_STUB instead of DECL_NAME.
* dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check TYPE_DECL_IS_STUB instead of DECL_NAME. From-SVN: r14944
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r--gcc/dwarfout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index 0c73fcd..6db507d 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -5144,7 +5144,7 @@ dwarfout_file_scope_decl (decl, set_finalizing)
a return type or a formal parameter type of some function. */
if (debug_info_level <= DINFO_LEVEL_TERSE)
- if (DECL_NAME (decl) != NULL
+ if (! TYPE_DECL_IS_STUB (decl)
|| ! TYPE_USED_FOR_FUNCTION (TREE_TYPE (decl)))
return;