re PR debug/52027 (ICE: SIGSEGV in set_cur_line_info_table (dwarf2out.c:20428) with...
authorJakub Jelinek <jakub@redhat.com>
Mon, 30 Jan 2012 13:49:44 +0000 (14:49 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 30 Jan 2012 13:49:44 +0000 (14:49 +0100)
commit2026d51a4165a6eef50a80fc3370490d5e5ee442
tree51e742f2f8ac2470df8bd3451262a4ccd506bba3
parent2f32669918c6422f072b3b648809b792b5b909f6
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
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/pr52027.c [new file with mode: 0644]