aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorFritz Reese <fritzoreese@gmail.com>2016-09-23 21:06:18 +0000
committerFritz Reese <foreese@gcc.gnu.org>2016-09-23 21:06:18 +0000
commit34d567d1f58df1e737c8abf6140ee8ec41e92377 (patch)
tree04238123ac677477e1192cb9ed0128ea5ec57ef4 /gcc/fortran/options.c
parent6465652c8768dae2567f693eed04fb6a1b8ce517 (diff)
downloadgcc-34d567d1f58df1e737c8abf6140ee8ec41e92377.zip
gcc-34d567d1f58df1e737c8abf6140ee8ec41e92377.tar.gz
gcc-34d567d1f58df1e737c8abf6140ee8ec41e92377.tar.bz2
lang.opt, [...]: New flag -fdec-static.
2016-09-23 Fritz Reese <fritzoreese@gmail.com> gcc/fortran/ * lang.opt, invoke.texi, gfortran.texi: New flag -fdec-static. * options.c (set_dec_flags): Set -fdec-static with -fdec. * gfortran.h (symbol_attribute): New attribute automatic. * gfortran.h (gfc_add_automatic): New prototype. * match.h (gfc_match_automatic, gfc_match_static): New functions. * decl.c (gfc_match_automatic, gfc_match_static): Ditto. * symbol.c (gfc_add_automatic): Ditto. * decl.c (match_attr_spec): Match AUTOMATIC and STATIC decls. * parse.c (decode_specification_statement, decode_statement): Ditto. * resolve.c (apply_default_init_local, resolve_fl_variable_derived, resolve_symbol): Support for automatic attribute. * symbol.c (check_conflict, gfc_copy_attr, gfc_is_var_automatic): Ditto. * trans-decl.c (gfc_finish_var_decl): Ditto. gcc/testsuite/gfortran.dg/ * dec_static_1.f90, dec_static_2.f90, dec_static_3.f90, dec_static_4.f90: New testcases. From-SVN: r240458
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index 4aa8303..13dfa88 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -54,6 +54,7 @@ set_dec_flags (int value)
{
gfc_option.flag_dec_structure = value;
flag_dec_intrinsic_ints = value;
+ flag_dec_static = value;
}