Commit 2ac33bca by Cesar Philippidis Committed by Cesar Philippidis

gfortran.h (gfc_omp_namespace): Add locus where member.

	gcc/fortran/
	* gfortran.h (gfc_omp_namespace): Add locus where member.
	* openmp.c (gfc_match_omp_variable_list): Set where for each list
	item found.
	(resolve_omp_clauses): Remove where argument and use the where
	gfc_omp_namespace member when reporting errors.
	(resolve_omp_do):  Update call to resolve_omp_clauses.
	(resolve_oacc_loop): Likewise.
	(gfc_resolve_oacc_directive): Likewise.
	(gfc_resolve_omp_directive): Likewise.
	(gfc_resolve_omp_declare_simd): Likewise.

	gcc/testsuite/
	* gfortran.dg/gomp/intentin1.f90: Adjust copyprivate warning.

From-SVN: r229609
parent 2631d4eb
2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
* gfortran.h (gfc_omp_namespace): Add locus where member.
* openmp.c (gfc_match_omp_variable_list): Set where for each list
item found.
(resolve_omp_clauses): Remove where argument and use the where
gfc_omp_namespace member when reporting errors.
(resolve_omp_do): Update call to resolve_omp_clauses.
(resolve_oacc_loop): Likewise.
(gfc_resolve_oacc_directive): Likewise.
(gfc_resolve_omp_directive): Likewise.
(gfc_resolve_omp_declare_simd): Likewise.
2015-10-15 Steven G. Kargl <kargl@gcc.gnu.org> 2015-10-15 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/51993 PR fortran/51993
......
...@@ -1123,6 +1123,7 @@ typedef struct gfc_omp_namelist ...@@ -1123,6 +1123,7 @@ typedef struct gfc_omp_namelist
} u; } u;
struct gfc_omp_namelist_udr *udr; struct gfc_omp_namelist_udr *udr;
struct gfc_omp_namelist *next; struct gfc_omp_namelist *next;
locus where;
} }
gfc_omp_namelist; gfc_omp_namelist;
......
2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
* gfortran.dg/gomp/intentin1.f90: Adjust copyprivate warning.
2015-10-30 Steven G. Kargl <kargl@gcc.gnu.org> 2015-10-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/46588 PR fortran/46588
......
...@@ -11,6 +11,6 @@ subroutine foo (x) ...@@ -11,6 +11,6 @@ subroutine foo (x)
!$omp simd linear (x) ! { dg-error "INTENT.IN. POINTER" } !$omp simd linear (x) ! { dg-error "INTENT.IN. POINTER" }
do i = 1, 10 do i = 1, 10
end do end do
!$omp single ! { dg-error "INTENT.IN. POINTER" } !$omp single
!$omp end single copyprivate (x) !$omp end single copyprivate (x) ! { dg-error "INTENT.IN. POINTER" }
end end
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