PR debug/85302
commit9574a856d4cc276c43f006893b3e678cdb7a251d
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Apr 2018 10:22:36 +0000 (11 10:22 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Apr 2018 10:22:36 +0000 (11 10:22 +0000)
tree97f7ee062dd40c3ac2c4c1e17cf29fee6ca1214f
parent7d24c3846c904b6e1ffea0bee0c58a9f7bcc23cb
PR debug/85302
* dwarf2out.c (skip_loc_list_entry): Don't call size_of_locs if
SIZEP is NULL.
(output_loc_list): Pass address of a dummy size variable even in the
locview handling loop.
(index_location_lists): Add comment on why skip_loc_list_entry can't
call size_of_locs.

* g++.dg/debug/dwarf2/pr85302.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259311 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/pr85302.C [new file with mode: 0644]