gimplify.c (nonlocal_vlas): Delete.
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 17 Jun 2018 11:36:58 +0000 (11:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 17 Jun 2018 11:36:58 +0000 (11:36 +0000)
commitd70ba0c10dec6968d178303709204fdde3d8892f
tree56c61211f3f65011db6e6bf06ce42a48fe05b176
parentf6a4a25f240e79dcdbca93f613c8c6face5c1211
gimplify.c (nonlocal_vlas): Delete.

* gimplify.c (nonlocal_vlas): Delete.
(nonlocal_vla_vars): Likewise.
(gimplify_var_or_parm_decl): Do not add debug VAR_DECLs for non-local
referenced VLAs.
(gimplify_body): Do not create and destroy nonlocal_vlas.
* tree-nested.c: Include diagnostic.h.
(use_pointer_in_frame): Tweak.
(lookup_field_for_decl): Add assertion and declare the transformation.
(convert_nonlocal_reference_op) <PARM_DECL>: Rework and issue an
internal error when the reference is in a wrong context.  Do not
create a debug decl by default.
(note_nonlocal_block_vlas): Delete.
(convert_nonlocal_reference_stmt) <GIMPLE_BIND>: Do not call it.
(convert_local_reference_op) <PARM_DECL>: Skip the frame decl.  Do not
create a debug decl by default.
(convert_gimple_call) <GIMPLE_CALL>: Issue an internal error when the
call is in a wrong context.
(fixup_vla_decls): New function.
(finalize_nesting_tree_1): Adjust comment.  Call fixup_vla_decls if no
debug variables were created.
* tree.c (decl_value_expr_lookup): Add checking assertion.
(decl_value_expr_insert): Likewise.
fortran/
* fortran/trans-decl.c (nonlocal_dummy_decl_pset): Delete.
(nonlocal_dummy_decls): Likewise.
(gfc_nonlocal_dummy_array_decl): Likewise.
(gfc_get_symbol_decl): Do not call gfc_nonlocal_dummy_array_decl.
(gfc_get_fake_result_decl): Do not generate a new DECL if simply
reusing the result of a recursive call.
(gfc_generate_function_code): Do not create, insert and destroy
nonlocal_dummy_decls.

From-SVN: r261687
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/pr37726.c [deleted file]
gcc/testsuite/gcc.dg/guality/pr37726.c [new file with mode: 0644]
gcc/testsuite/gnat.dg/stack_usage5.adb [new file with mode: 0644]
gcc/tree-nested.c
gcc/tree.c