https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91413
--- Comment #5 from Janne Blomqvist <jb at gcc dot gnu.org> --- Author: jb Date: Sun Nov 10 21:25:25 2019 New Revision: 278027 URL: https://gcc.gnu.org/viewcvs?rev=278027&root=gcc&view=rev Log: Don't print warning when moving to static with -fno-automatic As part of PR 91413, GFortran now prints a warning when a variable is moved from the stack to static storage. However, when the user explicitly specifies that all local variables should be put in static storage with the -fno-automatic option, don't print this warning. Regtested on x86_64-pc-linux-gnu, committed as obvious. gcc/fortran/ChangeLog: 2019-11-10 Janne Blomqvist <j...@gcc.gnu.org> PR fortran/91413 * trans-decl.c (gfc_finish_var_decl): Don't print warning when -fno-automatic is enabled. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-decl.c