This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/88045] Call to std::accumulate causes gcov to crash
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Nov 2018 08:17:02 +0000
- Subject: [Bug gcov-profile/88045] Call to std::accumulate causes gcov to crash
- Auto-submitted: auto-generated
- References: <bug-88045-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88045
--- 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