This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, commited] [4.7 Regression] Needless realloc with array constructor.


Committed as r210893 and 210894 (approved by Paul Thomas on IRC).

Dominique

2014-05-24  Dominique d'Humieres <dominiq@lps.ens.fr>

        Backport r195492 and r195815
        2013-01-27  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/55789
        PR fortran/56047
        * gfortran.h : Add associate_var to symbol_attr.
        * resolve.c (resolve_assoc_var): Set associate_var attribute.
        If the target class_ok is set, set it for the associate
        variable.
        * check.c (allocatable_check): Associate variables should not
        have the allocatable attribute even if their symbols do.
        * class.c (gfc_build_class_symbol): Symbols with associate_var
        set will always have a good class container.

        2013-02-06  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/55789
        * trans-array.c (trans_array_constructor): Remove condition
        'dynamic' = true if the loop ubound is a VAR_DECL.


and

2014-05-24  Dominique d'Humieres <dominiq@lps.ens.fr>

        Backport r195492 and r195815
        2013-01-27  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/55789
        * gfortran.dg/associate_14.f90: New test.

        PR fortran/56047
        * gfortran.dg/associate_13.f90: New test.

        2013-02-06  Paul Thomas <pault@gcc.gnu.org>

        PR fortran/55789 
        * gfortran.dg/array_constructor_41.f90: New test.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]