On Thu, Apr 29, 2021 at 1:20 PM Eric Botcazou <botca...@adacore.com> wrote: > > Hi, > > 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. > > The attached patch adds it and, therefore, makes it possible to do a profiled > bootstrap with -jN, N > 1, on these platforms. > > Tested on x86-64/Linux, x86-64/Windows and x86/Windows, OK for the mainline?
OK. Thanks, Richard. > > 2021-04-29 Eric Botcazou <ebotca...@adacore.com> > > libgcc/ > * 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 include 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. > > -- > Eric Botcazou