diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-10 16:01:54 +0000 |
---|---|---|
committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-10 16:01:54 +0000 |
commit | 1e0c04639e433a8653989f6bcbc6d98075d956c3 (patch) | |
tree | c5d58d80e3e311abc81deef7634e680d2df409b2 /gcc/fortran/match.c | |
parent | d72936dbaa1a3229d4c90e9e7183c9feabe0de4b (diff) | |
download | gcc-1e0c04639e433a8653989f6bcbc6d98075d956c3.tar.gz |
* match.c (match_arithmetic_if): Arithmetic IF is obsolete in
Fortran 95.
* gfortran.dg/pr17229.f: Take care of the new obsolescence
warning for arithmetic IF statements.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97948 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/match.c')
-rw-r--r-- | gcc/fortran/match.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c index 0a173b86ea0..d81686bb134 100644 --- a/gcc/fortran/match.c +++ b/gcc/fortran/match.c @@ -922,6 +922,10 @@ match_arithmetic_if (void) return MATCH_ERROR; } + if (gfc_notify_std (GFC_STD_F95_DEL, + "Obsolete: arithmetic IF statement at %C") == FAILURE) + return MATCH_ERROR; + new_st.op = EXEC_ARITHMETIC_IF; new_st.expr = expr; new_st.label = l1; @@ -993,6 +997,11 @@ gfc_match_if (gfc_statement * if_type) gfc_free_expr (expr); return MATCH_ERROR; } + + if (gfc_notify_std (GFC_STD_F95_DEL, + "Obsolete: arithmetic IF statement at %C") + == FAILURE) + return MATCH_ERROR; new_st.op = EXEC_ARITHMETIC_IF; new_st.expr = expr; |