2011-02-06 Paul Thomas <pault@gcc.gnu.org>
commitce082f77585fecdcf036414061fdda69e7ac8a9b
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Feb 2011 14:22:48 +0000 (6 14:22 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Feb 2011 14:22:48 +0000 (6 14:22 +0000)
tree83ccb035c9e45ef14dd291bdc88ba6dea11e5cf6
parent3636b47c906ba2591b7a46e36b386c203ac9b4cb
2011-02-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47592
* trans-stmt.c (gfc_trans_allocate): For deferred character
length allocations with SOURCE, store to the values and string
length to avoid calculating twice.  Replace gfc_start_block
with gfc_init_block to avoid unnecessary contexts and to keep
declarations of temporaries where they should be. Tidy up the
code a bit.

2011-02-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47592
* gfortran.dg/allocate_with_source_1 : New test.

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