Commit 4fed6b25 by Tobias Burnus Committed by Tobias Burnus

re PR fortran/57423 (Incorrect keyword argument names in Fortran OpenMP…

re PR fortran/57423 (Incorrect keyword argument names in Fortran OpenMP procedure interfaces in omp_lib)

2013-05-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57423
        * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
        omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
        omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
        omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
        omp_destroy_nest_lock): Correct arguments to match the one in
        the OpenMP spec.
        * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock,  omp_destroy_lock
        omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
        omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
        omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.

From-SVN: r199351
parent b03be25f
2013-05-27 Tobias Burnus <burnus@net-b.de>
PR fortran/57423
* libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
omp_destroy_nest_lock): Correct arguments to match the one in
the OpenMP spec.
* omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
2013-05-16 Jakub Jelinek <jakub@redhat.com> 2013-05-16 Jakub Jelinek <jakub@redhat.com>
* testsuite/libgomp.c/loop-13.c: New test. * testsuite/libgomp.c/loop-13.c: New test.
......
...@@ -601,13 +601,13 @@ adjustment of team sizes and @code{false} disables it. ...@@ -601,13 +601,13 @@ adjustment of team sizes and @code{false} disables it.
@item @emph{C/C++}: @item @emph{C/C++}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Prototype}: @tab @code{void omp_set_dynamic(int set);} @item @emph{Prototype}: @tab @code{void omp_set_dynamic(int dynamic_threads);}
@end multitable @end multitable
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_set_dynamic(set)} @item @emph{Interface}: @tab @code{subroutine omp_set_dynamic(dynamic_threads)}
@item @tab @code{logical, intent(in) :: set} @item @tab @code{logical, intent(in) :: dynamic_threads}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -657,13 +657,13 @@ dynamic adjustment of team sizes and @code{false} disables it. ...@@ -657,13 +657,13 @@ dynamic adjustment of team sizes and @code{false} disables it.
@item @emph{C/C++}: @item @emph{C/C++}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Prototype}: @tab @code{void omp_set_nested(int set);} @item @emph{Prototype}: @tab @code{void omp_set_nested(int nested);}
@end multitable @end multitable
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_set_nested(set)} @item @emph{Interface}: @tab @code{subroutine omp_set_nested(nested)}
@item @tab @code{logical, intent(in) :: set} @item @tab @code{logical, intent(in) :: nested}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -685,13 +685,13 @@ argument of @code{omp_set_num_threads} shall be a positive integer. ...@@ -685,13 +685,13 @@ argument of @code{omp_set_num_threads} shall be a positive integer.
@item @emph{C/C++}: @item @emph{C/C++}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Prototype}: @tab @code{void omp_set_num_threads(int n);} @item @emph{Prototype}: @tab @code{void omp_set_num_threads(int num_threads);}
@end multitable @end multitable
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_set_num_threads(n)} @item @emph{Interface}: @tab @code{subroutine omp_set_num_threads(num_threads)}
@item @tab @code{integer, intent(in) :: n} @item @tab @code{integer, intent(in) :: num_threads}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -750,8 +750,8 @@ an unlocked state. ...@@ -750,8 +750,8 @@ an unlocked state.
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_init_lock(lock)} @item @emph{Interface}: @tab @code{subroutine omp_init_lock(svar)}
@item @tab @code{integer(omp_lock_kind), intent(out) :: lock} @item @tab @code{integer(omp_lock_kind), intent(out) :: svar}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -779,8 +779,8 @@ a deadlock occurs. ...@@ -779,8 +779,8 @@ a deadlock occurs.
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_set_lock(lock)} @item @emph{Interface}: @tab @code{subroutine omp_set_lock(svar)}
@item @tab @code{integer(omp_lock_kind), intent(inout) :: lock} @item @tab @code{integer(omp_lock_kind), intent(inout) :: svar}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -809,8 +809,8 @@ does not block if the lock is not available. This function returns ...@@ -809,8 +809,8 @@ does not block if the lock is not available. This function returns
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{logical function omp_test_lock(lock)} @item @emph{Interface}: @tab @code{logical function omp_test_lock(svar)}
@item @tab @code{integer(omp_lock_kind), intent(inout) :: lock} @item @tab @code{integer(omp_lock_kind), intent(inout) :: svar}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -839,8 +839,8 @@ again, set the lock to itself. ...@@ -839,8 +839,8 @@ again, set the lock to itself.
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_unset_lock(lock)} @item @emph{Interface}: @tab @code{subroutine omp_unset_lock(svar)}
@item @tab @code{integer(omp_lock_kind), intent(inout) :: lock} @item @tab @code{integer(omp_lock_kind), intent(inout) :: svar}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -866,8 +866,8 @@ in the unlocked state. ...@@ -866,8 +866,8 @@ in the unlocked state.
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_destroy_lock(lock)} @item @emph{Interface}: @tab @code{subroutine omp_destroy_lock(svar)}
@item @tab @code{integer(omp_lock_kind), intent(inout) :: lock} @item @tab @code{integer(omp_lock_kind), intent(inout) :: svar}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -893,8 +893,8 @@ an unlocked state and the nesting count is set to zero. ...@@ -893,8 +893,8 @@ an unlocked state and the nesting count is set to zero.
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_init_nest_lock(lock)} @item @emph{Interface}: @tab @code{subroutine omp_init_nest_lock(nvar)}
@item @tab @code{integer(omp_nest_lock_kind), intent(out) :: lock} @item @tab @code{integer(omp_nest_lock_kind), intent(out) :: nvar}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -921,8 +921,8 @@ nesting count for the lock is incremented. ...@@ -921,8 +921,8 @@ nesting count for the lock is incremented.
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_set_nest_lock(lock)} @item @emph{Interface}: @tab @code{subroutine omp_set_nest_lock(nvar)}
@item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: lock} @item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: nvar}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -951,8 +951,8 @@ is returned. Otherwise, the return value equals zero. ...@@ -951,8 +951,8 @@ is returned. Otherwise, the return value equals zero.
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{logical function omp_test_nest_lock(lock)} @item @emph{Interface}: @tab @code{logical function omp_test_nest_lock(nvar)}
@item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: lock} @item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: nvar}
@end multitable @end multitable
...@@ -982,8 +982,8 @@ one of them is chosen to, again, set the lock to itself. ...@@ -982,8 +982,8 @@ one of them is chosen to, again, set the lock to itself.
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_unset_nest_lock(lock)} @item @emph{Interface}: @tab @code{subroutine omp_unset_nest_lock(nvar)}
@item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: lock} @item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: nvar}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
...@@ -1009,8 +1009,8 @@ in the unlocked state and its nesting count must equal zero. ...@@ -1009,8 +1009,8 @@ in the unlocked state and its nesting count must equal zero.
@item @emph{Fortran}: @item @emph{Fortran}:
@multitable @columnfractions .20 .80 @multitable @columnfractions .20 .80
@item @emph{Interface}: @tab @code{subroutine omp_destroy_nest_lock(lock)} @item @emph{Interface}: @tab @code{subroutine omp_destroy_nest_lock(nvar)}
@item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: lock} @item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: nvar}
@end multitable @end multitable
@item @emph{See also}: @item @emph{See also}:
......
...@@ -39,85 +39,85 @@ ...@@ -39,85 +39,85 @@
integer (omp_sched_kind), parameter :: omp_sched_auto = 4 integer (omp_sched_kind), parameter :: omp_sched_auto = 4
interface interface
subroutine omp_init_lock (lock) subroutine omp_init_lock (svar)
use omp_lib_kinds use omp_lib_kinds
integer (omp_lock_kind), intent (out) :: lock integer (omp_lock_kind), intent (out) :: svar
end subroutine omp_init_lock end subroutine omp_init_lock
end interface end interface
interface interface
subroutine omp_init_nest_lock (lock) subroutine omp_init_nest_lock (nvar)
use omp_lib_kinds use omp_lib_kinds
integer (omp_nest_lock_kind), intent (out) :: lock integer (omp_nest_lock_kind), intent (out) :: nvar
end subroutine omp_init_nest_lock end subroutine omp_init_nest_lock
end interface end interface
interface interface
subroutine omp_destroy_lock (lock) subroutine omp_destroy_lock (svar)
use omp_lib_kinds use omp_lib_kinds
integer (omp_lock_kind), intent (inout) :: lock integer (omp_lock_kind), intent (inout) :: svar
end subroutine omp_destroy_lock end subroutine omp_destroy_lock
end interface end interface
interface interface
subroutine omp_destroy_nest_lock (lock) subroutine omp_destroy_nest_lock (nvar)
use omp_lib_kinds use omp_lib_kinds
integer (omp_nest_lock_kind), intent (inout) :: lock integer (omp_nest_lock_kind), intent (inout) :: nvar
end subroutine omp_destroy_nest_lock end subroutine omp_destroy_nest_lock
end interface end interface
interface interface
subroutine omp_set_lock (lock) subroutine omp_set_lock (svar)
use omp_lib_kinds use omp_lib_kinds
integer (omp_lock_kind), intent (inout) :: lock integer (omp_lock_kind), intent (inout) :: svar
end subroutine omp_set_lock end subroutine omp_set_lock
end interface end interface
interface interface
subroutine omp_set_nest_lock (lock) subroutine omp_set_nest_lock (nvar)
use omp_lib_kinds use omp_lib_kinds
integer (omp_nest_lock_kind), intent (inout) :: lock integer (omp_nest_lock_kind), intent (inout) :: nvar
end subroutine omp_set_nest_lock end subroutine omp_set_nest_lock
end interface end interface
interface interface
subroutine omp_unset_lock (lock) subroutine omp_unset_lock (svar)
use omp_lib_kinds use omp_lib_kinds
integer (omp_lock_kind), intent (inout) :: lock integer (omp_lock_kind), intent (inout) :: svar
end subroutine omp_unset_lock end subroutine omp_unset_lock
end interface end interface
interface interface
subroutine omp_unset_nest_lock (lock) subroutine omp_unset_nest_lock (nvar)
use omp_lib_kinds use omp_lib_kinds
integer (omp_nest_lock_kind), intent (inout) :: lock integer (omp_nest_lock_kind), intent (inout) :: nvar
end subroutine omp_unset_nest_lock end subroutine omp_unset_nest_lock
end interface end interface
interface omp_set_dynamic interface omp_set_dynamic
subroutine omp_set_dynamic (set) subroutine omp_set_dynamic (dynamic_threads)
logical (4), intent (in) :: set logical (4), intent (in) :: dynamic_threads
end subroutine omp_set_dynamic end subroutine omp_set_dynamic
subroutine omp_set_dynamic_8 (set) subroutine omp_set_dynamic_8 (dynamic_threads)
logical (8), intent (in) :: set logical (8), intent (in) :: dynamic_threads
end subroutine omp_set_dynamic_8 end subroutine omp_set_dynamic_8
end interface end interface
interface omp_set_nested interface omp_set_nested
subroutine omp_set_nested (set) subroutine omp_set_nested (nested)
logical (4), intent (in) :: set logical (4), intent (in) :: nested
end subroutine omp_set_nested end subroutine omp_set_nested
subroutine omp_set_nested_8 (set) subroutine omp_set_nested_8 (nested)
logical (8), intent (in) :: set logical (8), intent (in) :: nested
end subroutine omp_set_nested_8 end subroutine omp_set_nested_8
end interface end interface
interface omp_set_num_threads interface omp_set_num_threads
subroutine omp_set_num_threads (set) subroutine omp_set_num_threads (num_threads)
integer (4), intent (in) :: set integer (4), intent (in) :: num_threads
end subroutine omp_set_num_threads end subroutine omp_set_num_threads
subroutine omp_set_num_threads_8 (set) subroutine omp_set_num_threads_8 (num_threads)
integer (8), intent (in) :: set integer (8), intent (in) :: num_threads
end subroutine omp_set_num_threads_8 end subroutine omp_set_num_threads_8
end interface end interface
...@@ -143,10 +143,10 @@ ...@@ -143,10 +143,10 @@
end interface end interface
interface interface
function omp_test_lock (lock) function omp_test_lock (svar)
use omp_lib_kinds use omp_lib_kinds
logical (4) :: omp_test_lock logical (4) :: omp_test_lock
integer (omp_lock_kind), intent (inout) :: lock integer (omp_lock_kind), intent (inout) :: svar
end function omp_test_lock end function omp_test_lock
end interface end interface
...@@ -179,10 +179,10 @@ ...@@ -179,10 +179,10 @@
end interface end interface
interface interface
function omp_test_nest_lock (lock) function omp_test_nest_lock (nvar)
use omp_lib_kinds use omp_lib_kinds
integer (4) :: omp_test_nest_lock integer (4) :: omp_test_nest_lock
integer (omp_nest_lock_kind), intent (inout) :: lock integer (omp_nest_lock_kind), intent (inout) :: nvar
end function omp_test_nest_lock end function omp_test_nest_lock
end interface end interface
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment