]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcov-tool: Support file input from stdin
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 30 Mar 2022 19:40:55 +0000 (21:40 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 28 Apr 2022 18:46:49 +0000 (20:46 +0200)
commite543d9d2cf597773556ce0db2594335444eec304
tree9fc6ae68925de13c8ee42671d56c9efae6a9ff1e
parent39d80300b3c769c3a7805a46ee5facc6adf1a4d0
gcov-tool: Support file input from stdin

gcc/

* gcov-io.cc (GCOV_MODE_STDIN): Define.
(gcov_position): For gcov-tool, return calculated position if file is
stdin.
(gcov_open):  For gcov-tool, use stdin if filename is NULL.
(gcov_close): For gcov-tool, do not close stdin.
(gcov_read_bytes): For gcov-tool, update position if file is stdin.
(gcov_sync): For gcov-tool, discard input if file is stdin.
gcc/gcov-io.cc