From 29b396f75f1b390f144777b478ee9dfe60f97610 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 15 Oct 1996 01:31:09 +0000 Subject: [PATCH] -g1 From-SVN: r12962 --- gcc/dwarf2out.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index e999426ce65..1558adec1f5 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -7594,8 +7594,9 @@ gen_decl_die (decl, context_die) type or a formal parameter type of some function. */ if (debug_info_level <= DINFO_LEVEL_TERSE) { - if (DECL_NAME (decl) != NULL - || !TYPE_USED_FOR_FUNCTION (TREE_TYPE (decl))) + if ((DECL_NAME (decl) != NULL + || !TYPE_USED_FOR_FUNCTION (TREE_TYPE (decl))) + && ! DECL_ARTIFICIAL (decl)) { break; } @@ -7797,8 +7798,9 @@ dwarfout_file_scope_decl (decl, set_finalizing) type or a formal parameter type of some function. */ if (debug_info_level <= DINFO_LEVEL_TERSE) { - if (DECL_NAME (decl) != NULL - || !TYPE_USED_FOR_FUNCTION (TREE_TYPE (decl))) + if ((DECL_NAME (decl) != NULL + || !TYPE_USED_FOR_FUNCTION (TREE_TYPE (decl))) + && ! DECL_ARTIFICIAL (decl)) { return; }