aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-05-30 18:13:43 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-05-30 18:13:43 -0700
commitfe7cd37f13155d6f96342972a110869f20c48bb1 (patch)
tree73779a01d7b54b780125eee0ddc0fbeca88f638a /gcc
parent2297fdf16012e7a8249c3e77cd3a6c9b9d58be7a (diff)
downloadgcc-fe7cd37f13155d6f96342972a110869f20c48bb1.zip
gcc-fe7cd37f13155d6f96342972a110869f20c48bb1.tar.gz
gcc-fe7cd37f13155d6f96342972a110869f20c48bb1.tar.bz2
* dwarf2out.c (dwarf2out_finish): Don't emit DW_AT_stmt_list at -g1.
From-SVN: r42731
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/dwarf2out.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c25fe8b..f48aed4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-30 Richard Henderson <rth@redhat.com>
+
+ * dwarf2out.c (dwarf2out_finish): Don't emit DW_AT_stmt_list at -g1.
+
2001-05-30 Tom Tromey <tromey@redhat.com>
* gcc.c (do_spec_1): In `%O' case, if we computed saved_suffix,
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index b02109e..10f8a9d 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -11445,8 +11445,9 @@ dwarf2out_finish ()
add_AT_lbl_id (comp_unit_die, DW_AT_high_pc, text_end_label);
}
- add_AT_lbl_offset (comp_unit_die, DW_AT_stmt_list,
- debug_line_section_label);
+ if (debug_info_level >= DINFO_LEVEL_NORMAL)
+ add_AT_lbl_offset (comp_unit_die, DW_AT_stmt_list,
+ debug_line_section_label);
#if 0 /* unimplemented */
if (debug_info_level >= DINFO_LEVEL_VERBOSE && primary)