Instrument only selected files (PR gcov-profile/87442).
authorMartin Liska <mliska@suse.cz>
Mon, 12 Nov 2018 21:01:38 +0000 (22:01 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 12 Nov 2018 21:01:38 +0000 (21:01 +0000)
commite18240ffe2b48af6e77018e5f4e797c4b57cae72
tree47b3de5539d55bde0524f303bd78eed461e6601e
parente375da43d77a3b54185f26c6f474e3482185e7e4
Instrument only selected files (PR gcov-profile/87442).

2018-11-12  Martin Liska  <mliska@suse.cz>

PR gcov-profile/87442
* common.opt: Add -fprofile-filter-files and -fprofile-exclude-files
options.
* doc/invoke.texi: Document them.
* tree-profile.c (parse_profile_filter): New.
(parse_profile_file_filtering): Likewise.
(release_profile_file_filtering): Likewise.
(include_source_file_for_profile): Likewise.
(tree_profiling): Filter source files based on the
newly added options.
2018-11-12  Martin Liska  <mliska@suse.cz>

PR gcov-profile/87442
* gcc.dg/profile-filtering-1.c: New test.
* gcc.dg/profile-filtering-2.c: New test.

From-SVN: r266037
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/profile-filtering-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/profile-filtering-2.c [new file with mode: 0644]
gcc/tree-profile.c