https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82933

            Bug ID: 82933
           Summary: valgrind error in set_cur_line_info_table with -g
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For a valgrind version of recent gcc trunk, run over the testsuite:

$ /home/dcb/gcc/results.254440.valgrind/bin/gcc -c -g 
./gcc.dg/rtl/x86_64/into-cfglayout.c
==7666== Invalid write of size 1
==7666==    at 0x767B0E: set_cur_line_info_table(section*) (dwarf2out.c:26501)
==7666==    by 0xDE7942: assemble_start_function(tree_node*, char const*)
(varasm.c:1821)
==7666==    by 0x803407: rest_of_handle_final (final.c:4475)
==7666==    by 0x803407: (anonymous namespace)::pass_final::execute(function*)
(final.c:4551)

The line of code in question is

      table->end_label = cold_end_label;

svn blame says

171816        rth     table->end_label = cold_end_label;

Reply via email to