[Patch] OpenMP: Fixes for omp critical + hint
Jakub Jelinek
jakub@redhat.com
Wed Jul 22 09:28:45 GMT 2020
On Wed, Jul 22, 2020 at 11:25:47AM +0200, Tobias Burnus wrote:
> On 7/22/20 11:09 AM, Thomas Schwinge wrote:
>
> > For build-tree testing, that'll pick up the *system* 'omp.h', thus:
> > FAIL: c-c++-common/gomp/critical-hint-1.c (test for excess errors)
> > Excess errors:
> > [...]/c-c++-common/gomp/critical-hint-1.c:10:33: error: 'omp_sync_hint_none' undeclared (first use in this function); did you mean 'omp_lock_hint_none'?
> > [...]
>
> HEADER FILE:
> For "ISO_Fortran_binding.h", we use:
> #include "../../../libgfortran/ISO_Fortran_binding.h"
> Can you check whether something like that also works for 'omp.h'?
> (Additional "../" and "libgomp/".)
This can't work, because unlike ISO_Fortran_binding.h, omp.h is
a generated file, so it doesn't appear in the source directory.
Jakub
More information about the Fortran
mailing list