2013-04-22 Janus Weil <janus@gcc.gnu.org>
commit0d41f475f764a57d9e55ef8422aa75b7aa802201
authorjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Apr 2013 19:14:22 +0000 (22 19:14 +0000)
committerjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Apr 2013 19:14:22 +0000 (22 19:14 +0000)
treec9169197a1c8013e938b0c13132d766b4bcffb84
parent24fcd1b5ed64e955a0d72f3c54c256c02e1576e4
2013-04-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/53685
PR fortran/57022
* check.c (gfc_calculate_transfer_sizes): Fix for array-valued SOURCE
expressions.
* simplify.c (gfc_simplify_sizeof,gfc_simplify_storage_size): Get rid
of special treatment for EXPR_ARRAY.
* target-memory.h (gfc_element_size): New prototype.
* target-memory.c (size_array): Remove.
(gfc_element_size): New function.
(gfc_target_expr_size): Modified to always return the full size of the
expression.

2013-04-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/53685
PR fortran/57022
* gfortran.dg/transfer_check_4.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198155 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/fortran/simplify.c
gcc/fortran/target-memory.c
gcc/fortran/target-memory.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/transfer_check_4.f90 [new file with mode: 0644]