re PR fortran/71523 (Static variables given automatic initializers with -finit-*...
authorFritz Reese <fritzoreese@gmail.com>
Sun, 17 Jul 2016 20:13:41 +0000 (20:13 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 17 Jul 2016 20:13:41 +0000 (20:13 +0000)
commit43068916e3c8ce005cce382d24af4e75753cfabe
tree19a50866091bdb30b6a2a08e83748752362c9c93
parent48b3613757c8959fc49165fdc9531b504fb8e30f
re PR fortran/71523 (Static variables given automatic initializers with -finit-* and -fmax-stack-var-size)

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.

From-SVN: r238420
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr71523_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr71523_2.f90 [new file with mode: 0644]