Skip to content
Snippets Groups Projects
Commit 98a5fa94 authored by Jakub Jelinek's avatar Jakub Jelinek Committed by Jakub Jelinek
Browse files

re PR libgomp/33275 (Transient libgomp.fortran/omp_parse3.f90 -O0 failure)

	PR libgomp/33275
	* testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
	Make x and y integers rather than (implicit) reals.  Add private (j)
	clause to the last omp parallel.

From-SVN: r129631
parent ef99c95e
No related branches found
No related tags found
No related merge requests found
2007-10-25 Jakub Jelinek <jakub@redhat.com>
PR libgomp/33275
* testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
Make x and y integers rather than (implicit) reals. Add private (j)
clause to the last omp parallel.
2007-10-15 Maciej W. Rozycki <macro@linux-mips.org> 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
* configure: Regenerate following changes to ../config/tls.m4. * configure: Regenerate following changes to ../config/tls.m4.
......
...@@ -55,7 +55,7 @@ contains ...@@ -55,7 +55,7 @@ contains
subroutine test_threadprivate subroutine test_threadprivate
common /tlsblock/ x, y common /tlsblock/ x, y
!$omp threadprivate (/tlsblock/) !$omp threadprivate (/tlsblock/)
integer :: i, j integer :: i, j, x, y
logical :: m, n logical :: m, n
call omp_set_num_threads (4) call omp_set_num_threads (4)
call omp_set_dynamic (.false.) call omp_set_dynamic (.false.)
...@@ -83,7 +83,8 @@ contains ...@@ -83,7 +83,8 @@ contains
!$omp end parallel !$omp end parallel
m = m .or. n m = m .or. n
n = .false. n = .false.
!$omp parallel num_threads (4), copyin (z) reduction (.or. : n) !$omp parallel num_threads (4), copyin (z) reduction (.or. : n) &
!$omp&private (j)
if (z .ne. 4096) n = .true. if (z .ne. 4096) n = .true.
if (omp_get_num_threads () .eq. i) then if (omp_get_num_threads () .eq. i) then
j = omp_get_thread_num () j = omp_get_thread_num ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment