+2019-01-24 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/89027
+ * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
+ for "omp simd array" variables.
+
2019-01-24 Richard Earnshaw <rearnsha@arm.com>
PR target/88469
+2019-01-24 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/89027
+ * gfortran.dg/gomp/pr89027.f90: New test.
+
2019-01-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/88929
- * gfortran.dg/ISO_Fortran_binding_3.f90 : New test
- * gfortran.dg/ISO_Fortran_binding_3.c : Subsidiary source.
+ * gfortran.dg/ISO_Fortran_binding_3.f90: New test.
+ * gfortran.dg/ISO_Fortran_binding_3.c: Subsidiary source.
2019-01-23 H.J. Lu <hongjiu.lu@intel.com>
--- /dev/null
+! PR tree-optimization/89027
+! { dg-do compile }
+! { dg-additional-options "-O2 -fexceptions -fno-tree-dce" }
+
+subroutine bar
+ integer :: a, b
+ a = 1
+ b = 2
+ call foo
+contains
+ subroutine foo
+!$omp simd linear(a:2) linear(b:1)
+ do a = 1, 20, 2
+ b = b + 1
+ end do
+!$omp end simd
+ if (a /= 21 .or. b /= 12) STOP 1
+!$omp task depend(out : a)
+ a = a + 1
+!$omp end task
+ end subroutine foo
+end subroutine bar
&& !TREE_THIS_VOLATILE (var)
&& !DECL_HAS_VALUE_EXPR_P (var)
&& !is_gimple_reg (var)
- && auto_var_in_fn_p (var, id->src_fn))
+ && auto_var_in_fn_p (var, id->src_fn)
+ && !lookup_attribute ("omp simd array", DECL_ATTRIBUTES (var)))
{
tree *t = id->decl_map->get (var);
if (!t)