re PR debug/82933 (valgrind error in set_cur_line_info_table with -g)
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Nov 2017 07:50:15 +0000 (08:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Nov 2017 07:50:15 +0000 (08:50 +0100)
commit83087d6521689c6200065537640b953972fbd76b
tree06169e53be962fd05c6cffbb4b25c7a7bdc25b7b
parent644f013227facdd53e313b2cb60745cedfe0c6c8
re PR debug/82933 (valgrind error in set_cur_line_info_table with -g)

PR debug/82933
* run-rtl-passes.c: Include debug.h.
(run_rtl_passes): Call debug_hooks->assembly_start.
* dwarf2out.c (dwarf2out_assembly_start): Return early if invoked
multiple times.

* gcc.dg/rtl/x86_64/pr82933.c: New test.

From-SVN: r254987
gcc/ChangeLog
gcc/dwarf2out.c
gcc/run-rtl-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/rtl/x86_64/pr82933.c [new file with mode: 0644]