re PR rtl-optimization/85302 (ICE in size_of_loc_descr, at dwarf2out.c:1771 on i686...
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Apr 2018 10:22:36 +0000 (12:22 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Apr 2018 10:22:36 +0000 (12:22 +0200)
commit5805b08924db448a9f7389ed0b3867c328242f06
tree97f7ee062dd40c3ac2c4c1e17cf29fee6ca1214f
parent60d1915f9a3bbc2b3cc9d5eec72404d9b7180ad8
re PR rtl-optimization/85302 (ICE in size_of_loc_descr, at dwarf2out.c:1771 on i686-linux-gnu)

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.

From-SVN: r259311
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/pr85302.C [new file with mode: 0644]