2010-06-29 Paul Thomas <pault@gcc.gnu.org>
commit5d7ab965473e40d20b9db065754b4d9dd6869cf4
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Jun 2010 18:57:43 +0000 (29 18:57 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Jun 2010 18:57:43 +0000 (29 18:57 +0000)
tree0873d19ee868ffa15535fe1be34270d82e9452dd
parent7244b875c2e9cef730ffa7d0e68f7d52edfa02ec
2010-06-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/44582
* trans-expr.c (arrayfunc_assign_needs_temporary): New function
to determine if a function assignment can be made without a
temporary.
(gfc_trans_arrayfunc_assign): Move all the conditions that
suppress the direct function call to the above new functon and
call it.

2010-06-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/44582
* gfortran.dg/aliasing_array_result_1.f90 : New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161550 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/aliasing_array_result_1.f90 [new file with mode: 0644]