diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-03-28 12:50:44 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-04-28 20:46:49 +0200 |
commit | 68a4673fe25e067df74373a45180d80c70da102f (patch) | |
tree | 3807c804f3cfb9e1bb5ed144e711890aebf7aa73 /gcc/gcov-io.h | |
parent | 1a6314b040877842ac71e6d9d786fe7a452e51e2 (diff) | |
download | gcc-68a4673fe25e067df74373a45180d80c70da102f.zip gcc-68a4673fe25e067df74373a45180d80c70da102f.tar.gz gcc-68a4673fe25e067df74373a45180d80c70da102f.tar.bz2 |
gcov: Make gcov_seek() static
This function is only used by gcov_write_length() in the gcov-io.cc file.
gcc/
* gcov-io.cc (gcov_seek): Make it static.
* gcov-io.h (struct gcov_summary): Do not mention gcov_seek().
libgcc/
* libgcov.h (gcov_seek): Remove define and declaration.
Diffstat (limited to 'gcc/gcov-io.h')
-rw-r--r-- | gcc/gcov-io.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h index afe74b0..204ae0c 100644 --- a/gcc/gcov-io.h +++ b/gcc/gcov-io.h @@ -340,9 +340,9 @@ struct gcov_summary /* Functions for reading and writing gcov files. In libgcov you can open the file for reading then writing. Elsewhere you can open the file either for reading or for writing. When reading a file you may - use the gcov_read_* functions, gcov_sync, gcov_position, & - gcov_error. When writing a file you may use the gcov_write - functions, gcov_seek & gcov_error. When a file is to be rewritten + use the gcov_read_* functions, gcov_sync, gcov_position, and + gcov_error. When writing a file you may use the gcov_write* + functions and gcov_error. When a file is to be rewritten you use the functions for reading, then gcov_rewrite then the functions for writing. Your file may become corrupted if you break these invariants. */ |