]> gcc.gnu.org Git - gcc.git/commit - gcc/config.in
Add parallelism support to gcov for MinGW platforms
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 29 Apr 2021 12:03:09 +0000 (14:03 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 29 Apr 2021 14:02:17 +0000 (16:02 +0200)
commit9ec469f504f4bc4c3cdfa4a3f9e164c26e4881af
tree97e4d0e08706a85c153da52ec785c7c1fb7523e0
parentd03ca8a6148f55e119b8220a9c65147173b32065
Add parallelism support to gcov for MinGW platforms

If you attempt a profiled bootstrap on the MinGW platforms with -jN, N > 1,
it miserably fails because of profile mismatches all over the place, the
reason being that gcov has no support for parallelism on these platforms.

libgcc/
* libgcov.h: For the target, define GCOV_LOCKED_WITH_LOCKING
if __MSVCRT__ and, for the host, define it if HOST_HAS_LK_LOCK.
* libgcov-driver.c: Add directives if GCOV_LOCKED_WITH_LOCKING.
gcc/
* configure.ac: Check for the presence of sys/locking.h header and
for whether _LK_LOCK is supported by _locking.
* configure: Regenerate.
* config.in: Likewise.
* gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
* gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
* system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/gcov-io.c
gcc/gcov-io.h
gcc/system.h
libgcc/libgcov-driver.c
libgcc/libgcov.h
This page took 0.058624 seconds and 5 git commands to generate.