Commit a8e12e4d by Tobias Schlüter

re PR fortran/22038 (Forall with mask broken)

fortran/
2005-06-13  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/22038
	* trans-stmt.c (gfc_trans_forall_loop): Only increment maskindex
	in the innermost loop.

testsuite/
2005-06-13  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>

	PR fortran/22038
	* gfortran.dg/forall_1.f90: Un-XFAIL.

From-SVN: r100887
parent 8fe4d24b
2005-06-13 Jakub Jelinek <jakub@redhat.com>
PR fortran/22038
* trans-stmt.c (gfc_trans_forall_loop): Only increment maskindex
in the innermost loop.
2005-06-12 Richard Henderson <rth@redhat.com> 2005-06-12 Richard Henderson <rth@redhat.com>
* trans-array.c (gfc_conv_descriptor_data_get): Rename from * trans-array.c (gfc_conv_descriptor_data_get): Rename from
...@@ -18,7 +24,7 @@ ...@@ -18,7 +24,7 @@
* trans-array.h (gfc_conv_descriptor_data_get): Declare. * trans-array.h (gfc_conv_descriptor_data_get): Declare.
(gfc_conv_descriptor_data_set, gfc_conv_descriptor_data_addr): Declare. (gfc_conv_descriptor_data_set, gfc_conv_descriptor_data_addr): Declare.
2005-06-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de> 2005-06-12 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
* trans-expr.c (gfc_conv_variable): POINTER results don't need f2c * trans-expr.c (gfc_conv_variable): POINTER results don't need f2c
calling conventions. Look at sym instead of sym->result. calling conventions. Look at sym instead of sym->result.
......
...@@ -1364,8 +1364,9 @@ gfc_trans_forall_loop (forall_info *forall_tmp, int nvar, tree body, int mask_fl ...@@ -1364,8 +1364,9 @@ gfc_trans_forall_loop (forall_info *forall_tmp, int nvar, tree body, int mask_fl
tmp = build2 (PLUS_EXPR, TREE_TYPE (var), var, step); tmp = build2 (PLUS_EXPR, TREE_TYPE (var), var, step);
gfc_add_modify_expr (&block, var, tmp); gfc_add_modify_expr (&block, var, tmp);
/* Advance to the next mask element. */ /* Advance to the next mask element. Only do this for the
if (mask_flag) innermost loop. */
if (n == 0 && mask_flag)
{ {
mask = forall_tmp->mask; mask = forall_tmp->mask;
maskindex = forall_tmp->maskindex; maskindex = forall_tmp->maskindex;
......
2005-06-13 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/22038
* gfortran.dg/forall_1.f90: Un-XFAIL.
2005-06-13 Nathan Sidwell <nathan@codesourcery.com> 2005-06-13 Nathan Sidwell <nathan@codesourcery.com>
PR c++/21929 PR c++/21929
......
! { dg-do run { xfail *-*-* } } ! { dg-do run }
! tests FORALL statements with a mask ! tests FORALL statements with a mask
! unfortunately, this is broken, PR 22038
dimension i2(15,10), i1(15) dimension i2(15,10), i1(15)
type a type a
sequence sequence
......
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