Patch for profiling

View: New views
1 Messages — Rating Filter:   Alert me  

Patch for profiling

by ZIGLIO, Frediano, VF-IT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
ccache mailing list
ccache@...
https://lists.samba.org/mailman/listinfo/ccache