diff options
author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-06 15:01:10 +0000 |
---|---|---|
committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-06 15:01:10 +0000 |
commit | 4396343edfe9b1f9f9b29c19d73aa0e74be3f600 (patch) | |
tree | dbe748fd35c50e2ed5669c9b2a7e62111f61759b /gcc/fortran/expr.c | |
parent | 790ec1efbe28ee667c30dd7f87428b53f8f164c8 (diff) | |
download | ppe42-gcc-4396343edfe9b1f9f9b29c19d73aa0e74be3f600.tar.gz ppe42-gcc-4396343edfe9b1f9f9b29c19d73aa0e74be3f600.zip |
* trans-array.c (gfc_trans_allocate_array_storage,
gfc_trans_allocate_temp_array, gfc_add_loop_ss_code,
gfc_conv_loop_setup):
For functions, if the shape of the result is not known
in compile-time, generate an empty array descriptor for
the result and let the callee to allocate the memory.
(gfc_trans_dummy_array_bias): Do nothing for pointers.
(gfc_conv_expr_descriptor): Use function return values directly.
* trans-expr.c (gfc_conv_function_call): Always add byref call
insn to pre chain.
(gfc_trans_pointer_assignment): Add comments.
(gfc_trans_arrayfunc_assign): Don't chain on expression.
testsuite/
* gfortran.dg/ret_array_1.f90: New test.
* gfortran.dg/ret_pointer_1.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85642 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions