lang.opt, [...]: New flag -fdec-static.
authorFritz Reese <fritzoreese@gmail.com>
Fri, 23 Sep 2016 21:06:18 +0000 (21:06 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Fri, 23 Sep 2016 21:06:18 +0000 (21:06 +0000)
commit34d567d1f58df1e737c8abf6140ee8ec41e92377
tree04238123ac677477e1192cb9ed0128ea5ec57ef4
parent6465652c8768dae2567f693eed04fb6a1b8ce517
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
17 files changed:
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/gfortran.texi
gcc/fortran/invoke.texi
gcc/fortran/lang.opt
gcc/fortran/match.h
gcc/fortran/options.c
gcc/fortran/parse.c
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_static_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_static_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_static_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_static_4.f90 [new file with mode: 0644]