2010-07-21 Daniel Kraft <d@domob.eu>
authordomob <domob@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jul 2010 13:44:38 +0000 (13:44 +0000)
committerdomob <domob@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jul 2010 13:44:38 +0000 (13:44 +0000)
commit89ac8ba1010f80f10f55ffe9d9445a25163266af
tree3afbfb5397c9f4875f557b7dd7084ea182554630
parent8e3b5e90c9521674dbc02422831fbdc08673d034
2010-07-21  Daniel Kraft  <d@domob.eu>

* trans.h (gfc_get_return_label): Removed.
(gfc_generate_return): New method.
(gfc_trans_deferred_vars): Update gfc_wrapped_block rather than
returning a tree directly.
* trans-stmt.c (gfc_trans_return): Use `gfc_generate_return'.
(gfc_trans_block_construct): Update for new interface to
`gfc_trans_deferred_vars'.
* trans-decl.c (current_function_return_label): Removed.
(current_procedure_symbol): New variable.
(gfc_get_return_label): Removed.
(gfc_trans_deferred_vars): Update gfc_wrapped_block rather than
returning a tree directly.
(get_proc_result), (gfc_generate_return): New methods.
(gfc_generate_function_code): Clean up and do init/cleanup here
also with gfc_wrapped_block.  Remove return-label but rather
return directly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162373 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/fortran/trans-stmt.c
gcc/fortran/trans.h