gcov: Add __gcov_filename_to_gcfn()
commit39d80300b3c769c3a7805a46ee5facc6adf1a4d0
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 30 Mar 2022 19:45:23 +0000 (30 21:45 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 28 Apr 2022 18:46:49 +0000 (28 20:46 +0200)
tree2c8609ca844a90b8006e39f11c2735a91fe73dff
parent68a4673fe25e067df74373a45180d80c70da102f
gcov: Add __gcov_filename_to_gcfn()

gcc/

* doc/invoke.texi (fprofile-info-section): Mention
__gcov_filename_to_gcfn().  Use "freestanding" to match with C11
standard language.  Fix minor example code issues.
* gcov-io.h (GCOV_FILENAME_MAGIC): Define and document.

gcc/testsuite/

* gcc.dg/gcov-info-to-gcda.c: Test __gcov_filename_to_gcfn().

libgcc/

* gcov.h (__gcov_info_to_gcda): Mention __gcov_filename_to_gcfn().
(__gcov_filename_to_gcfn): Declare and document.
* libgcov-driver.c (dump_string): New.
(__gcov_filename_to_gcfn): Likewise.
(__gcov_info_to_gcda): Adjust comment to match C11 standard language.
gcc/doc/invoke.texi
gcc/gcov-io.h
gcc/testsuite/gcc.dg/gcov-info-to-gcda.c
libgcc/gcov.h
libgcc/libgcov-driver.c