Bug 7091 - ccache should ignore cache with some profile flags
Summary: ccache should ignore cache with some profile flags
Alias: None
Product: ccache
Classification: Unclassified
Component: ccache (show other bugs)
Version: 2.4
Hardware: Other Linux
: P3 normal
Target Milestone: 3.0
Assignee: Joel Rosdahl
QA Contact: Joel Rosdahl
Depends on:
Reported: 2010-02-02 13:29 UTC by Mike Frysinger
Modified: 2010-07-09 04:15 UTC (History)
0 users

See Also:

ccache-2.4-profile.patch (1.04 KB, patch)
2010-02-02 13:30 UTC, Mike Frysinger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Frysinger 2010-02-02 13:29:34 UTC
GCCs options -fprofile-generate and -fprofile-use are used for profile guided optimization. It depends on the ability to locate the profile data files (.gcda) after running the executable with the training data. However, ccache prevents the compiler from finding the correct profile data file. Therefore the following patch disables the caching when one of the
flags is found.

patch by Clemens Rabe <crabe@gmx.de>
Comment 1 Mike Frysinger 2010-02-02 13:30:09 UTC
Created attachment 5257 [details]
Comment 2 Joel Rosdahl 2010-02-20 03:25:19 UTC
Thanks. The -fprofile-arcs flag was already taken care of in the dev repo, but the rest of the patch was committed as 3eaee4c2a7c9992547585e416f51da1a6337e167.