GCC r187297 (2012-05) introduced __gcov_dump and __gcov_reset.
`__gcov_flush = __gcov_dump + __gcov_reset`
https://gcc.gnu.org/PR93623 (target GCC 11.0) removed the unuseful and undocumented __gcov_flush.
Paths
| Differential D83149
[gcov] Add __gcov_dump/__gcov_reset and delete __gcov_flush ClosedPublic Authored by MaskRay on Jul 3 2020, 5:01 PM.
Details Summary GCC r187297 (2012-05) introduced __gcov_dump and __gcov_reset. `__gcov_flush = __gcov_dump + __gcov_reset` https://gcc.gnu.org/PR93623 (target GCC 11.0) removed the unuseful and undocumented __gcov_flush.
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptJul 3 2020, 5:01 PM Herald added subscribers: llvm-commits, Restricted Project, cfe-commits, hiraditya. · View Herald Transcript Comment Actions Some nit-picking, lgtm otherwise. Please wait for @calixte review though :-)
MaskRay added inline comments.
Comment Actions compiler-rt/test/profile/Inputs/instrprof-dlopen-dlclose-main.c.gcov is clumsy to update. The filename is also wrong: gcov has nothing to do with instrprof. I'll update the tests separately like my fba8523fb55c8e3bc853df7a250845cf51e5fc99 This revision is now accepted and ready to land.Jul 17 2020, 1:55 AM Closed by commit rG5809a32e7c2d: [gcov] Add __gcov_dump/__gcov_reset and delete __gcov_flush (authored by MaskRay). · Explain WhyJul 18 2020, 3:08 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 279027 clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/CodeGen/code-coverage.c
clang/test/Driver/darwin-ld.c
compiler-rt/lib/profile/GCDAProfiling.c
compiler-rt/test/profile/Inputs/instrprof-dlopen-dlclose-main.c
compiler-rt/test/profile/Posix/gcov-dlopen.c
compiler-rt/test/profile/Posix/gcov-shared-flush.c
compiler-rt/test/profile/gcov-__gcov_flush-terminate.c
compiler-rt/test/profile/gcov-dump-and-remove.c
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
|
Do we also need to test gcov_flush symbol here too?