Contrary to gcc/testsuite/*/gomp/, using omp_lib in libgomp is possible and should be done – which is the proper way.
Committed as r12-52-g0c0bdcc60cfa0e87b3b9abc1460a7073b199d38a Tobias PS: omp_depend_kind = 2*c_intptr_t, which nowadays usually is 16, but on 32bit systems it is usually 8. It did fail for two reasons: first, integer(kind=16) is not supported on -m32 x86; secondly, the FE expects a kind 8/8-byte integer kind in this case. On 21.04.21 19:44, sunil.k.pandey wrote:
On Linux/x86_64, a61c4964cd71446232d62ec9b10a7d45b440dd9f is the first bad commit commit a61c4964cd71446232d62ec9b10a7d45b440dd9f Author: Tobias Burnus <tob...@codesourcery.com> Date: Wed Apr 21 10:58:29 2021 +0200 Fortran/OpenMP: Add 'omp depobj' and 'depend(mutexinoutset:' caused FAIL: libgomp.fortran/depobj-1.f90 -O (test for excess errors) with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-20/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx x86_64-linux --disable-bootstrap To reproduce: $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/depobj-1.f90 --target_board='unix{-m32}'" $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFLAGS="fortran.exp=libgomp.fortran/depobj-1.f90 --target_board='unix{-m32\ -march=cascadelake}'" (Please do not reply to this email, for question about this report, contact me at skpgkp2 at gmail dot com)
----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf