gcov: fix line output for nested functions in JSON format
authorMartin Liska <mliska@suse.cz>
Mon, 14 Dec 2020 13:00:08 +0000 (14:00 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 15 Dec 2020 08:41:21 +0000 (09:41 +0100)
commitefd08ad579a1dea6409bd280cb5c263ed0849839
tree6cff7d4e2e6921e815733fb2c2ac5f18fe6042aa
parent23900be4d316be2d049378c094798982b7f0df9e
gcov: fix line output for nested functions in JSON format

gcc/ChangeLog:

PR gcov-profile/98273
* gcov.c (output_json_intermediate_file): Use stack of nested
functions for lines in a source file.  Pop when a function ends.
gcc/gcov.c