From: Uros Bizjak Date: Sat, 19 Jan 2008 17:57:57 +0000 (+0100) Subject: dwarf2out.c (dwarf2out_switch_text_section): Do not call dwarf2out_note_section_used... X-Git-Tag: releases/gcc-4.3.0~532 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0b9dbd562630086b7d7ff2d78cc5663dc48f732;p=thirdparty%2Fgcc.git dwarf2out.c (dwarf2out_switch_text_section): Do not call dwarf2out_note_section_used if cold_text_section is NULL. * dwarf2out.c (dwarf2out_switch_text_section): Do not call dwarf2out_note_section_used if cold_text_section is NULL. From-SVN: r131654 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3fed0b22cab8..ec25be5b0a63 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-01-19 Uros Bizjak + + * dwarf2out.c (dwarf2out_switch_text_section): Do not call + dwarf2out_note_section_used if cold_text_section is NULL. + 2008-01-19 Jakub Jelinek PR gcov-profile/34610 @@ -197,7 +202,7 @@ function always sign-extends the value. 2008-01-16 Jakub Jelinek - Richard Guenther + Richard Guenther PR c/34668 * gimplify.c (fold_indirect_ref_rhs): Rename to ... diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 3a5b897c8776..829b9ee328f5 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -2729,7 +2729,9 @@ dwarf2out_switch_text_section (void) don't attempt to advance_loc4 between labels in different sections. */ fde->dw_fde_current_label = NULL; - dwarf2out_note_section_used (); + /* There is no need to mark used sections when not debugging. */ + if (cold_text_section != NULL) + dwarf2out_note_section_used (); } #endif