diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-26 20:06:37 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-26 20:06:37 +0000 |
commit | 7f2e183b3f69bc689f579acf304ab76a8627d6af (patch) | |
tree | e2d56418b775f560e8f4f39554652bf96430a511 /gcc/fortran/symbol.c | |
parent | d3eb23fbe92790268582002b677110fc2bbd449c (diff) | |
download | gcc-7f2e183b3f69bc689f579acf304ab76a8627d6af.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104661 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/symbol.c')
-rw-r--r-- | gcc/fortran/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index acae453e72c..de2de4b6a60 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -2345,7 +2345,7 @@ gfc_is_var_automatic (gfc_symbol * sym) /* Check for non-constant length character variables. */ if (sym->ts.type == BT_CHARACTER && sym->ts.cl - && gfc_is_constant_expr (sym->ts.cl->length)) + && !gfc_is_constant_expr (sym->ts.cl->length)) return true; return false; } |