]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/23677 (-fno-automatic does not accept legal save statements)
authorJakub Jelinek <jakub@redhat.com>
Mon, 26 Sep 2005 20:06:37 +0000 (22:06 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 26 Sep 2005 20:06:37 +0000 (22:06 +0200)
commitd05d9ac771ec6e7f7a1f0f0417106b0c73a9943d
treee2d56418b775f560e8f4f39554652bf96430a511
parentd674eb2f5c198a128ea401681e2f0937587e6369
re PR fortran/23677 (-fno-automatic does not accept legal save statements)

PR fortran/23677
* symbol.c (gfc_is_var_automatic): Return true if character length
is non-constant rather than constant.
* resolve.c (gfc_resolve): Don't handle !gfc_option.flag_automatic
here.
* options.c (gfc_post_options): Set gfc_option.flag_max_stack_var_size
to 0 for -fno-automatic.

* gfortran.fortran-torture/execute/save_1.f90: New test.
* gfortran.dg/save_1.f90: New test.

From-SVN: r104661
gcc/fortran/ChangeLog
gcc/fortran/options.c
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/save_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.fortran-torture/execute/save_1.f90 [new file with mode: 0644]