trans-stmt.c (generate_loop_for_temp_to_lhs): Add an additional INVERT argument to...
authorRoger Sayle <roger@eyesopen.com>
Thu, 2 Mar 2006 00:24:45 +0000 (00:24 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 2 Mar 2006 00:24:45 +0000 (00:24 +0000)
commit011daa767e8ba0999faed5c3ea7e8d8ceaa42fcd
tree77ab08403d503a642c7080aa2b98249c9e417e9e
parent7362e4524fa75780ab7c203b0e37e43fdd6b1af3
trans-stmt.c (generate_loop_for_temp_to_lhs): Add an additional INVERT argument to invert the sense of the WHEREMASK argument.

* trans-stmt.c (generate_loop_for_temp_to_lhs): Add an additional
INVERT argument to invert the sense of the WHEREMASK argument.
Remove unneeded code to AND together a list of masks.
(generate_loop_for_rhs_to_temp): Likewise.
(gfc_trans_assign_need_temp): Likewise.
(gfc_trans_forall_1): Likewise.
(gfc_evaluate_where_mask): Likewise, add a new INVERT argument
to specify the sense of the MASK argument.
(gfc_trans_where_assign): Likewise.
(gfc_trans_where_2): Likewise.  Restructure code that decides
whether we need to allocate zero, one or two temporary masks.
If this is a top-level WHERE (i.e. the incoming MAKS is NULL),
we only need to allocate at most one temporary mask, and can
invert it's sense to provide the complementary pending execution
mask.  Only calculate the size of the required temporary arrays
if we need any.
(gfc_trans_where): Update call to gfc_trans_where_2.

From-SVN: r111630
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c