Skip to content

Commit d5b2e41

Browse files
authored
[OpenMP][omp_lib] Restore compatibility with more restrictive Fortran compilers (#77780)
The most recent changes to `omp_lib.h.var` have re-introduced some compatibility issues that had to be fixed due to the similar changes in the past. Namely: 1. D120707 has removed the "use omp_lib_kinds" statement and replaced it with import 2. D114537 added line continuation to the long lines This patch introduces the same kind of changes in order to restore compatibility with some more restrictive Fortran compilers so their users could still benefit from the LLVM's OpenMP Fortran library.
1 parent 667e58a commit d5b2e41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openmp/runtime/src/include/omp_lib.h.var

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -741,10 +741,10 @@
741741
integer(c_int), value :: device_num
742742
end function
743743

744-
function omp_target_memset_async(ptr, val, count, device_num, &
745-
depobj_count, depobj_list) bind(c)
744+
function omp_target_memset_async(ptr, val, count, device_num, &
745+
& depobj_count, depobj_list) bind(c)
746746
use, intrinsic :: iso_c_binding, only : c_ptr, c_int, c_size_t
747-
use omp_lib_kinds
747+
import
748748
type(c_ptr) :: omp_target_memset_async
749749
type(c_ptr), value :: ptr
750750
integer(c_int), value :: val

0 commit comments

Comments
 (0)