r274264 - in /trunk/gcc/fortran: ChangeLog invo...

jb@gcc.gnu.org jb@gcc.gnu.org
Sun Aug 11 09:42:00 GMT 2019


Author: jb
Date: Sun Aug 11 09:42:41 2019
New Revision: 274264

URL: https://gcc.gnu.org/viewcvs?rev=274264&root=gcc&view=rev
Log:
PR fortran/91413 Generate warning when making array static

When moving a local variable from the stack to static storage, the
procedure is no longer safe to be called recursively or concurrently
from multiple threads.  Thus generate a warning when this is done.
Also double the default limit for switching from stack to static.

Regtested on x86_64-pc-linux-gnu.

gcc/fortran/ChangeLog:

2019-08-11  Janne Blomqvist  <jb@gcc.gnu.org>

	PR fortran/91413
	* invoke.texi (-fmax-stack-var-size): Document increased default.
	* options.c (gfc_post_options): Increase default stack var size to
	65536 bytes.
	* trans-decl.c (gfc_finish_var_decl): Generate warning when local
	array moved to static storage.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/invoke.texi
    trunk/gcc/fortran/options.c
    trunk/gcc/fortran/trans-decl.c



More information about the Gcc-cvs mailing list