PR fortran/70855
* frontend-passes.c (inline_matmul_assign): Disable in !$omp workshare.
* gfortran.dg/gomp/pr70855.f90: New test.
From-SVN: r236119
+2016-05-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR fortran/70855
+ * frontend-passes.c (inline_matmul_assign): Disable in !$omp workshare.
+
2016-05-09 Richard Biener <rguenther@suse.de>
PR fortran/70937
if (in_where)
return 0;
+ /* For now don't do anything in OpenMP workshare, it confuses
+ its translation, which expects only the allowed statements in there.
+ We should figure out how to parallelize this eventually. */
+ if (in_omp_workshare)
+ return 0;
+
expr1 = co->expr1;
expr2 = co->expr2;
if (expr2->expr_type != EXPR_FUNCTION
+2016-05-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR fortran/70855
+ * gfortran.dg/gomp/pr70855.f90: New test.
+
2016-05-11 Richard Biener <rguenther@suse.de>
PR middle-end/71002
--- /dev/null
+! PR fortran/70855
+! { dg-do compile }
+! { dg-additional-options "-O2" }
+
+program pr70855
+ integer, parameter :: m = 4
+ integer, parameter :: n = 2
+ real :: a(m,n)
+ real :: x(n)
+ real :: y(m)
+ a = 1.0
+ x = 1.0
+!$omp parallel
+!$omp workshare
+ y(1:m) = matmul ( a(1:m,1:n), x(1:n) )
+!$omp end workshare
+!$omp end parallel
+end program pr70855