diff options
author | Jakub Jelinek <jakub@redhat.com> | 2012-01-30 14:49:44 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2012-01-30 14:49:44 +0100 |
commit | 2026d51a4165a6eef50a80fc3370490d5e5ee442 (patch) | |
tree | 51e742f2f8ac2470df8bd3451262a4ccd506bba3 /gcc/dwarf2out.c | |
parent | 2f32669918c6422f072b3b648809b792b5b909f6 (diff) | |
download | gcc-2026d51a4165a6eef50a80fc3370490d5e5ee442.zip gcc-2026d51a4165a6eef50a80fc3370490d5e5ee442.tar.gz gcc-2026d51a4165a6eef50a80fc3370490d5e5ee442.tar.bz2 |
re PR debug/52027 (ICE: SIGSEGV in set_cur_line_info_table (dwarf2out.c:20428) with -O -freorder-blocks-and-partition -fno-reorder-functions -fprofile-use)
PR debug/52027
* dwarf2out.c (dwarf2out_switch_text_section): Don't call
set_cur_line_info_table if not emitting debug info.
* gcc.dg/tree-prof/pr52027.c: New test.
From-SVN: r183725
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index fee5c60..f710239 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -1177,7 +1177,8 @@ dwarf2out_switch_text_section (void) var_location_switch_text_section (); - set_cur_line_info_table (sect); + if (cold_text_section != NULL) + set_cur_line_info_table (sect); } /* And now, the subset of the debugging information support code necessary |