This is the mail archive of the gcc-bugs@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]

[Bug fortran/71523] Static variables given automatic initializers with -finit-* and -fmax-stack-var-size


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71523

--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Sun Jul 17 20:13:41 2016
New Revision: 238420

URL: https://gcc.gnu.org/viewcvs?rev=238420&root=gcc&view=rev
Log:
2016-07-17  Fritz Reese  <fritzoreese@gmail.com>

        PR fortran/71523
        * trans-decl.c (gfc_finish_var_decl): Replace automatic initializer
with
        a static one.

        * gfortran.dg/pr71523_1.f90: New test.
        * gfortran.dg/pr71523_2.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/pr71523_1.f90
    trunk/gcc/testsuite/gfortran.dg/pr71523_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/testsuite/ChangeLog

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