OSDN Git Service

2012-01-13 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jan 2012 20:42:01 +0000 (20:42 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jan 2012 20:42:01 +0000 (20:42 +0000)
commita7bf3a59d7562a4cea6112989b246842e502d5b6
tree07819544bb4329a28bcdd3999adbd130affead4b
parente8653c0263ce8075057654d445b7ed6ae3745450
2012-01-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/48351
* trans-array.c (structure_alloc_comps): Suppress interative
call to self, when current component is deallocated using
gfc_trans_dealloc_allocated.
* class.c (gfc_build_class_symbol): Copy the 'alloc_comp'
attribute from the declared type to the class structure.

2012-01-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/48351
* gfortran.dg/alloc_comp_assign.f03: New.
* gfortran.dg/allocatable_scalar_9.f90: Reduce count of
__BUILTIN_FREE from 38 to 32.

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