This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/71523] Static variables given automatic initializers with -finit-* and -fmax-stack-var-size
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 17 Jul 2016 20:14:13 +0000
- Subject: [Bug fortran/71523] Static variables given automatic initializers with -finit-* and -fmax-stack-var-size
- Auto-submitted: auto-generated
- References: <bug-71523-4@http.gcc.gnu.org/bugzilla/>
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