]> gcc.gnu.org Git - gcc.git/commit
re PR fortran/38507 (Bogus Warning: Deleted feature: GOTO jumps to END of construct)
authorTobias Schlüter <tobi@gcc.gnu.org>
Sun, 29 Mar 2009 17:15:48 +0000 (19:15 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Sun, 29 Mar 2009 17:15:48 +0000 (19:15 +0200)
commitd80c695ff0da09ebbb0d7b4370396e36d4e58180
tree932f0cbc2ec95ee8d7f4af821c8414255f18bcaa
parenteeae74a1a98590abc9eda18b198ff92f473f2e36
re PR fortran/38507 (Bogus Warning: Deleted feature: GOTO jumps to END of construct)

fortran/
PR fortran/38507
* gfortran.h (gfc_st_label): Fix comment.
(gfc_exec_op): Add statement code EXEC_END_BLOCK for end of block.
* parse.c (accept_statement): Use EXEC_END_BLOCK for END IF and
END SELECT with labels.
(check_do_closure): Fix formatting.
(parse_do_block): Fix typo in error message.
* resolve.c (code_stack): Remove tail member.  Update comment to
new use of reachable_labels.
(reachable_labels): Rename to ...
(find_reachable_labels): ... this.  Overhaul.  Update preceding
comment.
(resolve_branch): Fix comment preceding function.  Rewrite.
(resolve_code): Update call to find_reachable_labels.  Add code to
deal with EXEC_END_BLOCK.
* st.c (gfc_free_statement): Add code to deal with EXEC_END_BLOCK.
* trans.c (gfc_trans_code): Likewise.
testsuite/
* do_4.f: New.
* goto_2.f90: Correct expected warnings.
* goto_4.f90: Likewise.
* goto_5.f90: New.

From-SVN: r145245
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/parse.c
gcc/fortran/resolve.c
gcc/fortran/st.c
gcc/fortran/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/do_4.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goto_2.f90
gcc/testsuite/gfortran.dg/goto_4.f90
gcc/testsuite/gfortran.dg/goto_5.f90 [new file with mode: 0644]
This page took 0.058562 seconds and 5 git commands to generate.