Properly mark lambdas in GCOV (PR gcov-profile/86109).
commit7de708f8f52a6e674eeb9ba729df2682bae34aea
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2018 08:30:10 +0000 (3 08:30 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2018 08:30:10 +0000 (3 08:30 +0000)
tree8fa1a89d2850e78140a6a1c0472e9dd5b6b6d777
parent691e0ef9bca7f3687d595bd70cd938e8372ec00a
Properly mark lambdas in GCOV (PR gcov-profile/86109).

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

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

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264806 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/coverage.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gcov/pr86109.C [new file with mode: 0644]
gcc/tree-core.h
gcc/tree.h