-g1
authorJason Merrill <merrill@gnu.org>
Tue, 15 Oct 1996 01:31:09 +0000 (01:31 +0000)
committerJason Merrill <merrill@gnu.org>
Tue, 15 Oct 1996 01:31:09 +0000 (01:31 +0000)
From-SVN: r12962

gcc/dwarf2out.c

index e999426..1558ade 100644 (file)
@@ -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;
            }