[Bug gcov-profile/88045] Call to std::accumulate causes gcov to crash

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 19 08:17:00 GMT 2018


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

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Nov 19 08:16:17 2018
New Revision: 266262

URL: https://gcc.gnu.org/viewcvs?rev=266262&root=gcc&view=rev
Log:
Strenghten assumption about function start and end line (PR
gcov-profile/88045).

2018-11-19  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/88045
        * coverage.c (coverage_begin_function): Add assert.
2018-11-19  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/88045
        * g++.dg/gcov/pr88045.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gcov/pr88045.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/coverage.c
    trunk/gcc/testsuite/ChangeLog

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Nov 19 08:16:30 2018
New Revision: 266263

URL: https://gcc.gnu.org/viewcvs?rev=266263&root=gcc&view=rev
Log:
Make a workaround for PR gcov-profile/88045.

2018-11-19  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/88045
        * coverage.c (coverage_begin_function): One can't relly on the
        fact that function ends on the same line it starts or later.
2018-11-19  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/88045
        * g++.dg/gcov/pr88045.C: New test.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/gcov/pr88045.C
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/coverage.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list