hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/kernel/gcov/gcc_4_7.c
....@@ -85,6 +85,7 @@
8585 * @version: gcov version magic indicating the gcc version used for compilation
8686 * @next: list head for a singly-linked list
8787 * @stamp: uniquifying time stamp
88
+ * @checksum: unique object checksum
8889 * @filename: name of the associated gcov data file
8990 * @merge: merge functions (null for unused counter type)
9091 * @n_functions: number of instrumented functions
....@@ -97,6 +98,10 @@
9798 unsigned int version;
9899 struct gcov_info *next;
99100 unsigned int stamp;
101
+ /* Since GCC 12.1 a checksum field is added. */
102
+#if (__GNUC__ >= 12)
103
+ unsigned int checksum;
104
+#endif
100105 const char *filename;
101106 void (*merge[GCOV_COUNTERS])(gcov_type *, unsigned int);
102107 unsigned int n_functions;