On Fri, Jul 30, 2021 at 11:54:00AM +0200, Ulrich Drepper wrote:
> On Fri, Jul 30, 2021 at 10:50 AM Jakub Jelinek <[email protected]> wrote:
>
> > I think for now it would be better to guard the omp_display_env_*
> > in fortran.c with #ifndef LIBGOMP_OFFLOADED_ONLY
> >
>
> OK, easy enough. This compiles for me.
Ok (with ChangeLog entry), thanks.
> diff --git a/libgomp/fortran.c b/libgomp/fortran.c
> index 76285d4376b..26ec8ce30d8 100644
> --- a/libgomp/fortran.c
> +++ b/libgomp/fortran.c
> @@ -738,6 +738,7 @@ omp_get_default_allocator_ ()
> return (intptr_t) omp_get_default_allocator ();
> }
>
> +#ifndef LIBGOMP_OFFLOADED_ONLY
> void
> omp_display_env_ (const int32_t *verbose)
> {
> @@ -749,3 +750,4 @@ omp_display_env_8_ (const int64_t *verbose)
> {
> omp_display_env (!!*verbose);
> }
> +#endif /* LIBGOMP_OFFLOADED_ONLY */
Jakub