aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2008-01-19 18:57:57 +0100
committerUros Bizjak <uros@gcc.gnu.org>2008-01-19 18:57:57 +0100
commitd0b9dbd562630086b7d7ff2d78cc5663dc48f732 (patch)
tree73373bccec666726ca048f40c5184d9c6089092d /gcc/dwarf2out.c
parent135a171d9eac312352f58e0c09abac9156d9fbda (diff)
downloadgcc-d0b9dbd562630086b7d7ff2d78cc5663dc48f732.zip
gcc-d0b9dbd562630086b7d7ff2d78cc5663dc48f732.tar.gz
gcc-d0b9dbd562630086b7d7ff2d78cc5663dc48f732.tar.bz2
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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 3a5b897c..829b9ee 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