diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2009-05-10 07:23:30 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2009-05-10 07:23:30 +0000 |
commit | eb74e79b1b2bc2d2d244c8c84a7c7ef293686546 (patch) | |
tree | 515858a20177d34953f913624da9d1ef39065fb7 /gcc/fortran/trans-stmt.h | |
parent | a34dda5b51c5242cf014e0fa47e6a230c98aff06 (diff) | |
download | gcc-eb74e79b1b2bc2d2d244c8c84a7c7ef293686546.zip gcc-eb74e79b1b2bc2d2d244c8c84a7c7ef293686546.tar.gz gcc-eb74e79b1b2bc2d2d244c8c84a7c7ef293686546.tar.bz2 |
re PR fortran/38863 (WHERE with multiple elemental defined assignments gives wrong answer)
2009-05-10 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38863
* trans-expr.c (gfc_conv_operator_assign): Remove function.
* trans.h : Remove prototype for gfc_conv_operator_assign.
* trans-stmt.c (gfc_conv_elemental_dependencies): Initialize
derivde types with intent(out).
(gfc_trans_call): Add mask, count1 and invert arguments. Add
code to use mask for WHERE assignments.
(gfc_trans_forall_1): Use new arguments for gfc_trans_call.
(gfc_trans_where_assign): The gfc_symbol argument is replaced
by the corresponding code. If this has a resolved_sym, then
gfc_trans_call is called. The call to gfc_conv_operator_assign
is removed.
(gfc_trans_where_2): Change the last argument in the call to
gfc_trans_where_assign.
* trans-stmt.h : Modify prototype for gfc_trans_call.
* trans.c (gfc_trans_code): Use new args for gfc_trans_call.
2009-05-10 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38863
* gfortran.dg/dependency_24.f90: New test.
* gfortran.dg/dependency_23.f90: Clean up module files.
From-SVN: r147329
Diffstat (limited to 'gcc/fortran/trans-stmt.h')
-rw-r--r-- | gcc/fortran/trans-stmt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-stmt.h b/gcc/fortran/trans-stmt.h index ff8a838..0b167b9 100644 --- a/gcc/fortran/trans-stmt.h +++ b/gcc/fortran/trans-stmt.h @@ -40,7 +40,7 @@ tree gfc_trans_goto (gfc_code *); tree gfc_trans_entry (gfc_code *); tree gfc_trans_pause (gfc_code *); tree gfc_trans_stop (gfc_code *); -tree gfc_trans_call (gfc_code *, bool); +tree gfc_trans_call (gfc_code *, bool, tree, tree, bool); tree gfc_trans_return (gfc_code *); tree gfc_trans_if (gfc_code *); tree gfc_trans_arithmetic_if (gfc_code *); |