From: Richard Henderson Date: Thu, 31 May 2001 01:13:43 +0000 (-0700) Subject: * dwarf2out.c (dwarf2out_finish): Don't emit DW_AT_stmt_list at -g1. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe7cd37f13155d6f96342972a110869f20c48bb1;p=gcc.git * dwarf2out.c (dwarf2out_finish): Don't emit DW_AT_stmt_list at -g1. From-SVN: r42731 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c25fe8b933d..f48aed4e0a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-05-30 Richard Henderson + + * dwarf2out.c (dwarf2out_finish): Don't emit DW_AT_stmt_list at -g1. + 2001-05-30 Tom Tromey * gcc.c (do_spec_1): In `%O' case, if we computed saved_suffix, diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index b02109eb0b1..10f8a9dcf2b 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)