diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-11-21 08:50:15 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-11-21 08:50:15 +0100 |
commit | 83087d6521689c6200065537640b953972fbd76b (patch) | |
tree | 06169e53be962fd05c6cffbb4b25c7a7bdc25b7b /gcc/dwarf2out.c | |
parent | 644f013227facdd53e313b2cb60745cedfe0c6c8 (diff) | |
download | gcc-83087d6521689c6200065537640b953972fbd76b.zip gcc-83087d6521689c6200065537640b953972fbd76b.tar.gz gcc-83087d6521689c6200065537640b953972fbd76b.tar.bz2 |
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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 76a538f..7fd6ae3 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -27507,6 +27507,9 @@ dwarf2out_init (const char *filename ATTRIBUTE_UNUSED) static void dwarf2out_assembly_start (void) { + if (text_section_line_info) + return; + #ifndef DWARF2_LINENO_DEBUGGING_INFO ASM_GENERATE_INTERNAL_LABEL (text_section_label, TEXT_SECTION_LABEL, 0); ASM_GENERATE_INTERNAL_LABEL (text_end_label, TEXT_END_LABEL, 0); |