]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use hash_delimeter before hashing profile data
authorChris AtLee <catlee@mozilla.com>
Fri, 22 Jul 2011 18:56:31 +0000 (14:56 -0400)
committerChris AtLee <catlee@mozilla.com>
Fri, 22 Jul 2011 18:56:31 +0000 (14:56 -0400)
ccache.c

index 96d5c7051176af5f1315984bb1eb0c83eceaf416..0e570dc684ac40dd1fbf6507431c4d8524dc1a7e 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1022,11 +1022,9 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode)
                        base_name = remove_extension(output_obj);
                        gcda_name = format("%s.gcda", base_name);
                        free(base_name);
+                       hash_delimiter(hash, "-fprofile-use");
                        /* Add the gcda to our hash */
-                       if (!hash_file(hash, gcda_name)) {
-                               /* If it doesn't exist, add some null data */
-                               hash_string(hash, "no data");
-                       }
+                       hash_file(hash, gcda_name);
                }
        }