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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Wed Oct  3 08:30:10 2018
New Revision: 264806

URL: https://gcc.gnu.org/viewcvs?rev=264806&root=gcc&view=rev
Log:
Properly mark lambdas in GCOV (PR gcov-profile/86109).

2018-10-03  Martin Liska  <mli...@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_LAMBDA_FUNCTION): New macro.
2018-10-03  Martin Liska  <mli...@suse.cz>

        PR gcov-profile/86109
        * parser.c (cp_parser_lambda_declarator_opt):
        Set DECL_LAMBDA_FUNCTION for lambdas.
2018-10-03  Martin Liska  <mli...@suse.cz>

        PR gcov-profile/86109
        * g++.dg/gcov/pr86109.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gcov/pr86109.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/coverage.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-core.h
    trunk/gcc/tree.h

Reply via email to