r266037 - in /trunk/gcc: ChangeLog common.opt d...
marxin@gcc.gnu.org
marxin@gcc.gnu.org
Mon Nov 12 21:01:00 GMT 2018
Author: marxin
Date: Mon Nov 12 21:01:38 2018
New Revision: 266037
URL: https://gcc.gnu.org/viewcvs?rev=266037&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/profile-filtering-1.c
trunk/gcc/testsuite/gcc.dg/profile-filtering-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/common.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-profile.c
More information about the Gcc-cvs
mailing list