On 11/16/18 6:48 AM, Martin Liška wrote:
> Hi.
> 
> As mentioned in the PR, we should guarantee that a function ends before
> it starts (from source line perspective).
> 
> For gcc-8 branch, a work-around would be needed.
> 
> Survives tests and bootstrap on x86_64-linux-gnu.
> Ready for trunk and gcc-8 branch?
> Thanks,
> Martin
> 
> gcc/ChangeLog:
> 
> 2018-11-16  Martin Liska  <mli...@suse.cz>
> 
>       PR gcov/88045
>       * coverage.c (coverage_begin_function): Add assert.
> 
> gcc/testsuite/ChangeLog:
> 
> 2018-11-16  Martin Liska  <mli...@suse.cz>
> 
>       PR gcov/88045
>       * g++.dg/gcov/pr88045.C: New test.
OK for the trunk.  And the work-around for gcc-8 branch is OK as well
assuming you think it's worth fixing.

jeff

Reply via email to