]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/60543 (Function with side effect removed by the optimizer.)
authorTobias Burnus <burnus@net-b.de>
Thu, 20 Mar 2014 19:42:00 +0000 (20:42 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 20 Mar 2014 19:42:00 +0000 (20:42 +0100)
commit383e08df934578970ef06a656b335cbc977f4a22
treeb76be911e29eff1632f8c755b690773cf698f5dd
parentc4c0dba4a30dcb82fa3256fa6a830c2ed465708e
re PR fortran/60543 (Function with side effect removed by the optimizer.)

2014-03-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60543
        PR fortran/60283
        * gfortran.h (gfc_unset_implicit_pure): New prototype.
        * resolve.c (gfc_unset_implicit_pure): New.
        (resolve_structure_cons, resolve_function,
        pure_subroutine, resolve_ordinary_assign): Use it.
        * decl.c (match_old_style_init, gfc_match_data,
        match_pointer_init, variable_decl): Ditto.
        * expr.c (gfc_check_pointer_assign): Ditto.
        * intrinsic.c (gfc_intrinsic_sub_interface): Ditto.
        * io.c (match_vtag, gfc_match_open, gfc_match_close,
        match_filepos, gfc_match_inquire, gfc_match_print,
        gfc_match_wait, check_io_constraints): Ditto.
        * match.c (gfc_match_critical, gfc_match_stopcode,
        lock_unlock_statement, sync_statement, gfc_match_allocate,
        gfc_match_deallocate): Ditto.
        * parse.c (decode_omp_directive): Ditto.
        * symbol.c (gfc_add_save): Ditto.

2014-03-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60543
        PR fortran/60283
        * gfortran.dg/implicit_pure_4.f90: New.

From-SVN: r208732
12 files changed:
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/expr.c
gcc/fortran/gfortran.h
gcc/fortran/intrinsic.c
gcc/fortran/io.c
gcc/fortran/match.c
gcc/fortran/parse.c
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/implicit_pure_4.f90 [new file with mode: 0644]