public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/110827] New: C++20 coroutines aren't being measured by gcov
@ 2023-07-27  2:34 mwd at md5i dot com
  2023-07-27  7:48 ` [Bug gcov-profile/110827] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: mwd at md5i dot com @ 2023-07-27  2:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110827

            Bug ID: 110827
           Summary: C++20 coroutines aren't being measured by gcov
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mwd at md5i dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 55648
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55648&action=edit
Simple bug exemplar

When compiling with `--coverage` and running a program that utilizes C++20
coroutines, the statements in the coroutines aren't measured by gcov.

Compile the attached file, `foo.cpp`, with:
`g++ -std=c++20 --coverage -O0 -ggdb3 -o foo foo.cpp`

Then run the resulting `foo`, followed by `gcov foo.cpp`.

The resulting output in `foo.cpp.gcov` does not include lines 28 or 29 of
`foo.cpp`, the contents of the coroutine `foo()`.  In my tests this happens
with any coroutine of any size, though functions called by a coroutine are
covered properly.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-09-26 14:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-27  2:34 [Bug gcov-profile/110827] New: C++20 coroutines aren't being measured by gcov mwd at md5i dot com
2023-07-27  7:48 ` [Bug gcov-profile/110827] " rguenth at gcc dot gnu.org
2023-07-27  8:06 ` iains at gcc dot gnu.org
2023-07-27 13:56 ` mwd at md5i dot com
2023-07-27 17:34 ` mwd at md5i dot com
2023-07-28  6:17 ` rguenth at gcc dot gnu.org
2023-07-28  9:41 ` iains at gcc dot gnu.org
2023-08-29 16:21 ` mwd at md5i dot com
2023-08-29 16:40 ` mwd at md5i dot com
2023-08-31 16:53 ` mwd at md5i dot com
2023-09-25 18:05 ` mwd at md5i dot com
2023-09-26 14:54 ` iains at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).