The Fortran front end declares that the OpenACC "Clause SEQ conflicts with
INDEPENDENT". While that combination doesn't make too much sense indeed, it's
still valid; these are orthogonal concepts.
gcc/fortran/
PR fortran/88420
* openmp.c (resolve_oacc_loop_blocks): Remove "Clause SEQ
conflicts with INDEPENDENT" diagnostic.
gcc/testsuite/
PR fortran/88420
* gfortran.dg/goacc/loop-1-2.f95: Update.
* gfortran.dg/goacc/loop-1.f95: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266920
138bc75d-0d04-0410-961f-
82ee72b054a4
+2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
+
+ PR fortran/88420
+ * openmp.c (resolve_oacc_loop_blocks): Remove "Clause SEQ
+ conflicts with INDEPENDENT" diagnostic.
+
2018-12-08 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88048
if (code->ext.omp_clauses->seq)
{
- if (code->ext.omp_clauses->independent)
- gfc_error ("Clause SEQ conflicts with INDEPENDENT at %L", &code->loc);
if (code->ext.omp_clauses->gang)
gfc_error ("Clause SEQ conflicts with GANG at %L", &code->loc);
if (code->ext.omp_clauses->worker)
+2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
+
+ PR fortran/88420
+ * gfortran.dg/goacc/loop-1-2.f95: Update.
+ * gfortran.dg/goacc/loop-1.f95: Likewise.
+
2018-12-08 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88048
! { dg-error "ACC LOOP iteration variable must be of type integer" "" { target *-*-* } 150 }
end do
- ! Both seq and independent are not allowed
- !$acc loop independent seq ! { dg-error "SEQ conflicts with INDEPENDENT" }
+ !$acc loop independent seq
do i = 1,10
enddo
! { dg-error "ACC LOOP iteration variable must be of type integer" "" { target *-*-* } 150 }
end do
- ! Both seq and independent are not allowed
- !$acc loop independent seq ! { dg-error "SEQ conflicts with INDEPENDENT" }
+ !$acc loop independent seq
do i = 1,10
enddo