This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gcov-profile/87442] Add options to filter files we want to instrument for code coverage


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87442

--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> ---
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]