]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/52196 (Add -Wrealloc-lhs)
authorTobias Burnus <burnus@net-b.de>
Wed, 25 Apr 2012 06:25:48 +0000 (08:25 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 25 Apr 2012 06:25:48 +0000 (08:25 +0200)
commitf1fb11f1e8322a94b90ea8c1a1cbae79c5f1bab5
treecf5861882524a9b89885cd03d357099ba5ab7625
parentad1d9a5079591596b5ccd5a924a8b9c65c542e3e
re PR fortran/52196 (Add -Wrealloc-lhs)

2012-04-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52196
        * lang.opt (Wrealloc-lhs, Wrealloc-lhs-all): New flags.
        * gfortran.h (gfc_option_t): Add them.
        * options.c (gfc_init_options, gfc_post_options,
        gfc_handle_option): Handle them.
        * invoke.texi: Document them.
        * trans-expr.c (realloc_lhs_warning): New function.
        (gfc_trans_arrayfunc_assign,
        alloc_scalar_allocatable_for_assignment,
        gfc_trans_assignment_1): Use it.

2012-04-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52196
        * gfortran.dg/realloc_on_assign_14.f90: New.

From-SVN: r186806
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/invoke.texi
gcc/fortran/lang.opt
gcc/fortran/options.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/realloc_on_assign_14.f90 [new file with mode: 0644]