diff options
| author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-19 17:57:57 +0000 |
|---|---|---|
| committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-19 17:57:57 +0000 |
| commit | 4e971a0725ecb583335f9211c487fb6c5b126273 (patch) | |
| tree | 73373bccec666726ca048f40c5184d9c6089092d | |
| parent | b3a3ddece257f50649db88afb8e2248d91fa883b (diff) | |
| download | ppe42-gcc-4e971a0725ecb583335f9211c487fb6c5b126273.tar.gz ppe42-gcc-4e971a0725ecb583335f9211c487fb6c5b126273.zip | |
* dwarf2out.c (dwarf2out_switch_text_section): Do not call
dwarf2out_note_section_used if cold_text_section is NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131654 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 7 | ||||
| -rw-r--r-- | gcc/dwarf2out.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3fed0b22cab..ec25be5b0a6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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 @@ -197,7 +202,7 @@ function always sign-extends the value. 2008-01-16 Jakub Jelinek <jakub@redhat.com> - Richard Guenther <rguenther@suse.de> + Richard Guenther <rguenther@suse.de> PR c/34668 * gimplify.c (fold_indirect_ref_rhs): Rename to ... diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 3a5b897c877..829b9ee328f 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 |

