1 Nov 17:07
[Patch, Fortran] PR 41872 - Fixes for allocatable scalars (part 1)
Tobias Burnus <burnus <at> net-b.de>
2009-11-01 16:07:29 GMT
2009-11-01 16:07:29 GMT
Hello, allocatable scalars have several issues. This patch fixes the some of them. (For more issues, see PR.) Especially the following now works: * Passing allocatable scalars as argument. The problem before was that the allocatable scalar was passed by value and not by reference. * Auto-deallocation of allocatable actual arguments when passing them to allocatable INTENT(OUT) dummies. * Going out of scope does no longer nullify the variable; this is not needed as the variable cannot be accessed. (missed optimization) Build and regtested on x86-64-linux. OK for the trunk? Tobias
2009-11-01 Tobias Burnus <burnus <at> net-b.de> PR fortran/41872 * trans-decl.c (gfc_trans_deferred_vars): Do not nullify autodeallocated allocatable scalars at the end of scope. (gfc_generate_function_code): Fix indention. * trans-expr.c (gfc_conv_procedure_call): For allocatable scalars, fix calling by reference and autodeallocating(Continue reading)
RSS Feed