[Bug debug/82718] Bad DWARF5 .debug_loclists generation
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 21 07:59:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82718
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Nov 21 07:59:03 2017
New Revision: 254989
URL: https://gcc.gnu.org/viewcvs?rev=254989&root=gcc&view=rev
Log:
PR debug/82718
* dwarf2out.c (dw_loc_list): If crtl->has_bb_partition, temporarily
set in_cold_section_p to the partition containing loc_list->first.
When seeing loc_list->last_before_switch node, update secname and
perform range_across_switch second partition handling only after that.
* gcc.dg/debug/dwarf2/pr82718-1.c: New test.
* gcc.dg/debug/dwarf2/pr82718-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr82718-1.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr82718-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list