This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Properly mark lambdas in GCOV (PR gcov-profile/86109).
- From: Martin Liška <mliska at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jason Merrill <jason at redhat dot com>, Nathan Sidwell <nathan at acm dot org>
- Date: Fri, 21 Sep 2018 11:04:37 +0200
- Subject: Re: [PATCH] Properly mark lambdas in GCOV (PR gcov-profile/86109).
- References: <32c23cc0-f311-682c-ecb4-ee7777d8ede8@suse.cz>
PING^1
On 9/12/18 2:39 PM, Martin Liška wrote:
> Hi.
>
> This is follow-up of:
> https://gcc.gnu.org/ml/gcc/2018-08/msg00007.html
>
> I've chosen to implement that with new DECL_CXX_LAMBDA_FUNCTION that
> uses an empty bit in tree_function_decl.
>
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
>
> Ready for trunk?
>
> gcc/ChangeLog:
>
> 2018-09-12 Martin Liska <mliska@suse.cz>
>
> PR gcov-profile/86109
> * coverage.c (coverage_begin_function): Do not
> mark lambdas as artificial.
> * tree-core.h (struct GTY): Remove tm_clone_flag
> and introduce new lambda_function.
> * tree.h (DECL_CXX_LAMBDA_FUNCTION): New macro.
>
> gcc/cp/ChangeLog:
>
> 2018-09-12 Martin Liska <mliska@suse.cz>
>
> PR gcov-profile/86109
> * parser.c (cp_parser_lambda_declarator_opt):
> Set DECL_CXX_LAMBDA_FUNCTION for lambdas.
>
> gcc/testsuite/ChangeLog:
>
> 2018-09-12 Martin Liska <mliska@suse.cz>
>
> PR gcov-profile/86109
> * g++.dg/gcov/pr86109.C: New test.
> ---
> gcc/coverage.c | 3 ++-
> gcc/cp/parser.c | 1 +
> gcc/testsuite/g++.dg/gcov/pr86109.C | 16 ++++++++++++++++
> gcc/tree-core.h | 2 +-
> gcc/tree.h | 4 ++++
> 5 files changed, 24 insertions(+), 2 deletions(-)
> create mode 100644 gcc/testsuite/g++.dg/gcov/pr86109.C
>
>