[ccache] Patch for profiling

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Mon Jul 6 11:32:48 GMT 2009


Hi,
  to fix some issue with profiling I added this patch to ccache:

diff -ru ccache-2.4/ccache.c ccache-2.4.my/ccache.c
--- ccache-2.4/ccache.c 2004-09-13 12:38:30.000000000 +0200
+++ ccache-2.4.my/ccache.c      2006-03-27 08:46:24.000000000 +0200
@@ -642,7 +642,9 @@
                if (strcmp(argv[i], "-fbranch-probabilities")==0 ||
                    strcmp(argv[i], "-M") == 0 ||
                    strcmp(argv[i], "-MM") == 0 ||
-                   strcmp(argv[i], "-x") == 0) {
+                   strcmp(argv[i], "-x") == 0 ||
+                   strcmp(argv[i], "-fprofile-arcs") == 0 ||
+                   strcmp(argv[i], "-ftest-coverage") == 0) {
                        cc_log("argument %s is unsupported\n", argv[i]);
                        stats_update(STATS_UNSUPPORTED);
                        failed();


Regards
  Frediano Ziglio



More information about the ccache mailing list