Reapply "Make __gcov_flush flush counters for all shared libraries"
authorMarco Castelluccio <mcastelluccio@mozilla.com>
Tue, 10 Jul 2018 14:12:03 +0000 (14:12 +0000)
committerMarco Castelluccio <mcastelluccio@mozilla.com>
Tue, 10 Jul 2018 14:12:03 +0000 (14:12 +0000)
commit2827420aabb355b84eefc53f7a3d405c1696deeb
tree6cf351db9c76698de0173e4018fd6bcf9fcf74e5
parent53108d48f74e3bd68b82b17238d6872534dfb87c
Reapply "Make __gcov_flush flush counters for all shared libraries"

This reapplies r336365, after marking tests as failing on various
configurations.

llvm-svn: 336678
20 files changed:
compiler-rt/lib/profile/GCDAProfiling.c
compiler-rt/test/profile/Inputs/instrprof-dlopen-dlclose-main.c
compiler-rt/test/profile/Inputs/instrprof-dlopen-dlclose-main.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-dlopen-dlclose-main_three-libs.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-dlopen-func.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-dlopen-func2.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-dlopen-func3.c [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-dlopen-func3.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-shared-lib.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-shared-lib_called-twice.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-shared-lib_in-loop.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-shared-main-gcov-flush.c [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-shared-main-gcov-flush_no-writeout.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-shared-main-gcov-flush_shared-call-after.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-shared-main-gcov-flush_shared-call-before-after.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-shared-main-gcov-flush_shared-call-before.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/Inputs/instrprof-shared-main.c.gcov [new file with mode: 0644]
compiler-rt/test/profile/instrprof-dlopen-dlclose-gcov.test
compiler-rt/test/profile/instrprof-gcov-two-objects.test [new file with mode: 0644]
compiler-rt/test/profile/instrprof-shared-gcov-flush.test [new file with mode: 0644]