aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJeff Sturm <jsturm@one-point.com>2001-07-19 03:50:07 +0000
committerJeff Sturm <jsturm@gcc.gnu.org>2001-07-19 03:50:07 +0000
commit8458e9540166e45e4e9501cf2ae5a9aeb49b1468 (patch)
tree0c322f15257311013c12df19222b2685568ff44b /gcc/dwarf2out.c
parentb2a4c43c0db0c7878b5e74271d9a658857454b92 (diff)
downloadgcc-8458e9540166e45e4e9501cf2ae5a9aeb49b1468.zip
gcc-8458e9540166e45e4e9501cf2ae5a9aeb49b1468.tar.gz
gcc-8458e9540166e45e4e9501cf2ae5a9aeb49b1468.tar.bz2
dwarf2out.c (dwarf2out_abstract_function): Don't emit in-class declaration at -g1.
* dwarf2out.c (dwarf2out_abstract_function): Don't emit in-class declaration at -g1. Fixes c++/2814. From-SVN: r44141
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 1aa927a..1dbdae0 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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;