Commit d0b9dbd5 by Uros Bizjak

dwarf2out.c (dwarf2out_switch_text_section): Do not call…

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
parent 135a171d
2008-01-19 Uros Bizjak <ubizjak@gmail.com>
* dwarf2out.c (dwarf2out_switch_text_section): Do not call
dwarf2out_note_section_used if cold_text_section is NULL.
2008-01-19 Jakub Jelinek <jakub@redhat.com>
PR gcov-profile/34610
......
......@@ -2729,6 +2729,8 @@ dwarf2out_switch_text_section (void)
don't attempt to advance_loc4 between labels in different sections. */
fde->dw_fde_current_label = NULL;
/* There is no need to mark used sections when not debugging. */
if (cold_text_section != NULL)
dwarf2out_note_section_used ();
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment