aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/decl.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2010-06-25 21:17:21 +0200
committerTobias Burnus <burnus@gcc.gnu.org>2010-06-25 21:17:21 +0200
commit58fc89f6b9dfb78d857c08ecc5135dfcca1c3702 (patch)
tree8ec22cf4b468f1c2f0e801608786260eb1736fed /gcc/fortran/decl.c
parent272001a2444baade28fd272fd88a45dbe8ddeff6 (diff)
downloadgcc-58fc89f6b9dfb78d857c08ecc5135dfcca1c3702.zip
gcc-58fc89f6b9dfb78d857c08ecc5135dfcca1c3702.tar.gz
gcc-58fc89f6b9dfb78d857c08ecc5135dfcca1c3702.tar.bz2
decl.c (gfc_match_entry): Mark ENTRY as GFC_STD_F2008_OBS.
2010-06-25 Tobias Burnus <burnus@net-b.de> * decl.c (gfc_match_entry): Mark ENTRY as GFC_STD_F2008_OBS. * gfortran.texi (_gfortran_set_options): Update for GFC_STD_F2008_OBS addition. * libgfortran.h: Add GFC_STD_F2008_OBS. * options.c (set_default_std_flags, gfc_handle_option): Handle GFC_STD_F2008_OBS. io.c (check_format): Fix allow_std check. 2010-06-25 Tobias Burnus <burnus@net-b.de> * runtime/compile_options.c (init_compile_options): Update compile_options.allow_std for GFC_STD_F2008_OBS. * io/transfer.c (formatted_transfer_scalar_read, formatted_transfer_scalar_write): Fix allow_std check. * io/list_read.c (nml_parse_qualifier): Ditto. 2010-06-25 Tobias Burnus <burnus@net-b.de> * gfortran.dg/entry_19.f90: New. From-SVN: r161409
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r--gcc/fortran/decl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 73bc81c..c2b1ff2 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -4963,6 +4963,10 @@ gfc_match_entry (void)
if (m != MATCH_YES)
return m;
+ if (gfc_notify_std (GFC_STD_F2008_OBS, "Fortran 2008 obsolescent feature: "
+ "ENTRY statement at %C") == FAILURE)
+ return MATCH_ERROR;
+
state = gfc_current_state ();
if (state != COMP_SUBROUTINE && state != COMP_FUNCTION)
{