From 83087d6521689c6200065537640b953972fbd76b Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 21 Nov 2017 08:50:15 +0100 Subject: 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/run-rtl-passes.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/run-rtl-passes.c') diff --git a/gcc/run-rtl-passes.c b/gcc/run-rtl-passes.c index e1ac4bd..dfb5d53 100644 --- a/gcc/run-rtl-passes.c +++ b/gcc/run-rtl-passes.c @@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "bitmap.h" #include "df.h" #include "regs.h" +#include "debug.h" /* for debug_hooks. */ #include "insn-attr-common.h" /* for INSN_SCHEDULING. */ #include "insn-attr.h" /* for init_sched_attrs. */ #include "run-rtl-passes.h" @@ -43,6 +44,9 @@ run_rtl_passes (char *initial_pass_name) cfun->pass_startwith = initial_pass_name; max_regno = max_reg_num (); + /* cgraphunit.c normally handles this. */ + (*debug_hooks->assembly_start) (); + /* Pass "expand" normally sets this up. */ #ifdef INSN_SCHEDULING init_sched_attrs (); -- cgit v1.1