[Bug gcov-profile/86109] [8/9 Regression] gcov reports lines in lambdas as not executable

2018-10-03 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86109

--- Comment #5 from Martin Liška  ---
Author: marxin
Date: Wed Oct  3 09:24:38 2018
New Revision: 264807

URL: https://gcc.gnu.org/viewcvs?rev=264807=gcc=rev
Log:
Backport r264806

2018-10-03  Martin Liska  

Backport from mainline
2018-10-03  Martin Liska  

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  

Backport from mainline
2018-10-03  Martin Liska  

PR gcov-profile/86109
* parser.c (cp_parser_lambda_declarator_opt):
Set DECL_LAMBDA_FUNCTION for lambdas.
2018-10-03  Martin Liska  

Backport from mainline
2018-10-03  Martin Liska  

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

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

[Bug gcov-profile/86109] [8/9 Regression] gcov reports lines in lambdas as not executable

2018-10-03 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86109

Martin Liška  changed:

   What|Removed |Added

  Known to work||8.2.1
  Known to fail|8.1.0   |

--- Comment #4 from Martin Liška  ---
Fixed on trunk so far.

[Bug gcov-profile/86109] [8/9 Regression] gcov reports lines in lambdas as not executable

2018-10-03 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86109

--- Comment #3 from Martin Liška  ---
Author: marxin
Date: Wed Oct  3 08:30:10 2018
New Revision: 264806

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

2018-10-03  Martin Liska  

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  

PR gcov-profile/86109
* parser.c (cp_parser_lambda_declarator_opt):
Set DECL_LAMBDA_FUNCTION for lambdas.
2018-10-03  Martin Liska  

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

[Bug gcov-profile/86109] [8/9 Regression] gcov reports lines in lambdas as not executable

2018-07-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86109

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|8.2 |8.3

--- Comment #2 from Jakub Jelinek  ---
GCC 8.2 has been released.

[Bug gcov-profile/86109] [8/9 Regression] gcov reports lines in lambdas as not executable

2018-06-13 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86109

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |8.2

[Bug gcov-profile/86109] [8/9 Regression] gcov reports lines in lambdas as not executable

2018-06-12 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86109

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2018-06-12
  Known to work||7.3.0
   Assignee|unassigned at gcc dot gnu.org  |marxin at gcc dot 
gnu.org
Summary|[GCOV] gcov reports lines   |[8/9 Regression] gcov
   |in lambdas as not   |reports lines in lambdas as
   |executable  |not executable
 Ever confirmed|0   |1
  Known to fail||8.1.0, 9.0

--- Comment #1 from Martin Liška  ---
Confirmed, regressed with r254562.