dwarf2out.c (dwarf2out_abstract_function): Don't emit in-class declaration at -g1.
authorJeff Sturm <jsturm@one-point.com>
Thu, 19 Jul 2001 03:50:07 +0000 (03:50 +0000)
committerJeff Sturm <jsturm@gcc.gnu.org>
Thu, 19 Jul 2001 03:50:07 +0000 (03:50 +0000)
* dwarf2out.c (dwarf2out_abstract_function): Don't emit
in-class declaration at -g1.  Fixes c++/2814.

From-SVN: r44141

gcc/ChangeLog
gcc/dwarf2out.c

index dfe38acf835da5b32585a661bd5f3f1f45186c11..5f308afcde8e82228e5e83d988bf9845b54c1108 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-18  Jeff Sturm  <jsturm@one-point.com>
+
+       * dwarf2out.c (dwarf2out_abstract_function): Don't emit
+       in-class declaration at -g1.  Fixes c++/2814.
+
 2001-07-18  Richard Henderson  <rth@redhat.com>
 
        * doc/md.texi (reload_in/out): Document restrictions in predicates
index 1aa927ab41861d4e15e87c5aa05dab4c6bb0fa24..1dbdae034dd8281dd3ee685a84afa693e1bacf70 100644 (file)
@@ -9634,10 +9634,13 @@ dwarf2out_abstract_function (decl)
 
   /* Be sure we've emitted the in-class declaration DIE (if any) first, so
      we don't get confused by DECL_ABSTRACT.  */
-  context = decl_class_context (decl);
-  if (context)
-    gen_type_die_for_member
-      (context, decl, decl_function_context (decl) ? NULL : comp_unit_die);
+  if (debug_info_level > DINFO_LEVEL_TERSE)
+    {
+      context = decl_class_context (decl);
+      if (context)
+       gen_type_die_for_member
+         (context, decl, decl_function_context (decl) ? NULL : comp_unit_die);
+    }
  
   /* Pretend we've just finished compiling this function.  */
   save_fn = current_function_decl;