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

            Bug ID: 80435
           Summary: Expose __gcov_flush to allow developers to dump
                    coverage numbers on demand
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yaneurabeya at gmail dot com
  Target Milestone: ---

If a test program uses _exit in lieu of exit, the end-user must call
__gcov_flush. Unfortunately this API isn't currently exposed anywhere, so
calling it isn't possible unless someone adds appropriate extern's in program
headers.

It would be really nice if this API was exposed so others didn't need to back a
__gcov_flush definition in their sources (this seems to be the hack that
multiple individuals are using to workaround __gcov_flush not being made public
via binutils :(, e.g., https://gcc.gnu.org/ml/gcc-help/2015-06/msg00135.html ).

The companion bug I filed for this on the LLVM side can be found here:
http://bugs.llvm.org/show_bug.cgi?id=32555 .

Reply via email to