aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorMark Eggleston <mark.eggleston@codethink.com>2019-10-30 08:37:29 +0000
committerMark Eggleston <markeggleston@gcc.gnu.org>2019-10-30 08:37:29 +0000
commit91c4891af8f7edd32689a9917db5ae81f4ab0c72 (patch)
tree65d34a3a9baa938337730e952c40e39c5b0b704c /gcc/fortran/options.c
parent87f94429feeb72587549fdafd3106f1d799607ff (diff)
downloadgcc-91c4891af8f7edd32689a9917db5ae81f4ab0c72.zip
gcc-91c4891af8f7edd32689a9917db5ae81f4ab0c72.tar.gz
gcc-91c4891af8f7edd32689a9917db5ae81f4ab0c72.tar.bz2
Suppress warning with -Wno-overwrite-recursive.
The use of -fno-automatic with -frecursive results in a warning implying that recursion will not work. If all relevant local variable have the automatic attribute explicitly declared recursion does work and the warning is redundant. From-SVN: r277602
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index 771c10e..c875ec1 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -409,7 +409,8 @@ gfc_post_options (const char **pfilename)
gfc_warning_now (0, "Flag %<-fno-automatic%> overwrites %<-fmax-stack-var-size=%d%>",
flag_max_stack_var_size);
else if (!flag_automatic && flag_recursive)
- gfc_warning_now (0, "Flag %<-fno-automatic%> overwrites %<-frecursive%>");
+ gfc_warning_now (OPT_Woverwrite_recursive, "Flag %<-fno-automatic%> "
+ "overwrites %<-frecursive%>");
else if (!flag_automatic && flag_openmp)
gfc_warning_now (0, "Flag %<-fno-automatic%> overwrites %<-frecursive%> implied by "
"%<-fopenmp%>");