]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add caveat about parsing of .gcda and .gcno files.
authorMartin Liska <mliska@suse.cz>
Mon, 11 May 2020 07:25:46 +0000 (09:25 +0200)
committerMartin Liska <mliska@suse.cz>
Mon, 11 May 2020 07:25:46 +0000 (09:25 +0200)
PR gcov-profile/94928
* gcov-io.h: Add caveat about coverage format parsing and
possible outdated documentation.

gcc/ChangeLog
gcc/gcov-io.h

index d23ebffc24b22bab6667468b66b92ca2311d2351..f4424c604d92e2d051813714aab000fbd2734334 100644 (file)
@@ -1,3 +1,9 @@
+2020-05-11  Martin Liska  <mliska@suse.cz>
+
+       PR gcov-profile/94928
+       * gcov-io.h: Add caveat about coverage format parsing and
+       possible outdated documentation.
+
 2020-05-11  Xiong Hu Luo  <luoxhu@linux.ibm.com>
 
        PR tree-optimization/83403
index d21a43c4c31c09c00be6a5213c5acc2359b84e70..ef888f3ff98b615b1cde3357dcf5b07f84617d7d 100644 (file)
@@ -25,7 +25,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 <http://www.gnu.org/licenses/>.  */
 
 
-/* Coverage information is held in two files.  A notes file, which is
+/* CAVEAT: Coverage information files should not be parsed directly,
+   instead use `gcov --json-format`, which provides
+   machine-readable coverage information.
+
+   Note that the following file format documentation might be outdated.
+
+   Coverage information is held in two files.  A notes file, which is
    generated by the compiler, and a data file, which is generated by
    the program under test.  Both files use a similar structure.  We do
    not attempt to make these files backwards compatible with previous