* dwarf2out.c (dwarf2out_finish): Don't emit DW_AT_stmt_list at -g1.
authorRichard Henderson <rth@redhat.com>
Thu, 31 May 2001 01:13:43 +0000 (18:13 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 31 May 2001 01:13:43 +0000 (18:13 -0700)
From-SVN: r42731

gcc/ChangeLog
gcc/dwarf2out.c

index c25fe8b933de8604f6c50057e7d24898fb4d25e5..f48aed4e0a801de82575d1fdb59551b2d055190e 100644 (file)
@@ -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,
index b02109eb0b16dc06720009f070689521cb0ab7c1..10f8a9dcf2b3ab4edd67da252d0154148231ca6b 100644 (file)
@@ -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)