[flang-commits] [flang] [flang] Consider bind(c) when lowering calls to intrinsic module procedures (PR #70386)

Razvan Lupusoru via flang-commits flang-commits at lists.llvm.org
Thu Oct 26 17:09:50 PDT 2023


razvanlupusoru wrote:

> The following functions from `omp_lib.h` do not have a `bind(c)` attribute, which might be a problem.
> 
> ```
>     subroutine omp_set_affinity_format(format)
>     function omp_get_affinity_format(buffer)
>     subroutine omp_display_affinity(format)
>     function omp_capture_affinity(buffer, format)
>     function omp_pause_resource_all(kind)
>     function omp_init_allocator(memspace, ntraits, traits)
>     function omp_get_default_allocator()
> ```

Nice catch! Those need the bind(c) attribute also. The implementation for these is not in the module - but in the runtime. llvm/openmp/runtime/src
I will update the module to note this!

https://github.com/llvm/llvm-project/pull/70386


More information about the flang-commits mailing list