aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorSteven G. Kargl <kargls@comcast.net>2005-12-17 15:41:15 +0000
committerSteven G. Kargl <kargl@gcc.gnu.org>2005-12-17 15:41:15 +0000
commitdf8652dc8f251fa1997dd5cba26258f5d56ffbb2 (patch)
tree384db9ffc1ce7fb6673696c43fb2354ed60c3005 /gcc/fortran
parentad816b52a4de81b2cd0c1ce44347b2d6574bf19d (diff)
downloadgcc-df8652dc8f251fa1997dd5cba26258f5d56ffbb2.zip
gcc-df8652dc8f251fa1997dd5cba26258f5d56ffbb2.tar.gz
gcc-df8652dc8f251fa1997dd5cba26258f5d56ffbb2.tar.bz2
decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify to report nonstandard intrinsic type declarations.
2005-12-17 Steven G. Kargl <kargls@comcast.net> * decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify to report nonstandard intrinsic type declarations. * gfortran.dg/imag_1.f: Fix nonstandard type declarations. * gfortran.dg/nested_modules_1.f90: Ditto. * gfortran.dg/hollerith_f95.f90: Ditto. * gfortran.dg/select_5.f90: Ditto. * gfortran.dg/secnds.f: Ditto. * gfortran.dg/hollerith2.f90: Ditto. * gfortran.dg/imag_2.f: Ditto. * gfortran.dg/ftell_2.f90: Ditto. * gfortran.dg/malloc_free_1.f90: Ditto. * gfortran.dg/logint-1.f: Ditto. * gfortran.dg/recursive_statement_functions.f90: Ditto. * gfortran.dg/e_d_fmt.f90: Ditto. * gfortran.dg/hollerith_legacy.f90: Ditto. * gfortran.dg/logint-2.f: Ditto. * gfortran.dg/enum_5.f90: Ditto. * gfortran.dg/f2c_2.f90: Ditto. * gfortran.dg/pr17143.f90: Ditto. * gfortran.dg/namelist_14.f90: Ditto. * gfortran.dg/logint-3.f: Ditto. * gfortran.dg/spread_scalar_source.f90: Ditto. * gfortran.dg/fmt_read_bz_bn.f90: Ditto. * gfortran.dg/namelist_11.f: Ditto. * gfortran.dg/g77/intrinsic-unix-bessel.f: Ditto. * gfortran.dg/g77/20010519-1.f * gfortran.dg/g77/alpha1.f: Ditto. * gfortran.dg/g77/990115-1.f: Ditto. * gfortran.dg/g77/erfc.f: Ditto. * gfortran.dg/g77/19990313-3.f: Ditto. * gfortran.dg/g77/f90-intrinsic-numeric.f: Ditto. * gfortran.dg/g77/20010426.f: Ditto. * gfortran.dg/g77/19990313-0.f: Ditto. * gfortran.dg/g77/f90-intrinsic-mathematical.f: Ditto. * gfortran.dg/g77/20000629-1.f: Ditto. * gfortran.dg/g77/970125-0.f: Ditto. * gfortran.dg/g77/8485.f: Ditto. * gfortran.dg/g77/f90-intrinsic-bit.f: Ditto. * gfortran.dg/g77/19990313-1.f: Ditto. * gfortran.dg/g77/int8421.f: Ditto. * gfortran.dg/g77/19990305-0.f: Ditto. * gfortran.dg/g77/947.f: Ditto. * gfortran.dg/g77/19990905-2.f: Ditto. * gfortran.dg/g77/cabs.f: Ditto. * gfortran.dg/g77/19990313-2.f: Ditto. * gfortran.dg/g77/20020307-1.f: Ditto. * gfortran.dg/g77/dcomplex.f: Ditto. * gfortran.dg/g77/19990502-1.f: Ditto. * gfortran.dg/g77/19981216-0.f: Ditto. * gfortran.dg/common_4.f90: Ditto. * gfortran.dg/entry_4.f90: Ditto. * gfortran.dg/equiv_constraint_2.f90: Ditto. * gfortran.dg/g77_intrinsics_funcs.f: Ditto. * gfortran.dg/namelist_12.f: Ditto. * gfortran.dg/scale_1.f90: Ditto. * gfortran.dg/modulo_1.f90 * gfortran.dg/hollerith.f90: Ditto. * gfortran.dg/direct_io_3.f90: Ditto. * gfortran.dg/ftell_1.f90: Ditto.: Ditto. * gfortran.dg/gnu_logical_1.F: Ditto. * gfortran.dg/unf_io_convert_1.f90: Ditto. * gfortran.dg/assign_1.f90: Ditto. * gfortran.dg/g77_intrinsics_sub.f: Ditto. * gfortran.dg/pr23095.f: Ditto. * gfortran.dg/read_float_1.f90: Ditto. From-SVN: r108715
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/decl.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index bfc1078..882332d 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-17 Steven G. Kargl <kargls@comcast.net>
+
+ * decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify
+ to report nonstandard intrinsic type declarations.
+
2005-12-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 45a0442..1358cdcf 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -1311,6 +1311,10 @@ gfc_match_old_kind_spec (gfc_typespec * ts)
return MATCH_ERROR;
}
+ if (gfc_notify_std (GFC_STD_GNU, "Nonstandard type declaration %s*%d at %C",
+ gfc_basic_typename (ts->type), original_kind) == FAILURE)
+ return MATCH_ERROR;
+
return MATCH_YES;
}
@@ -1616,6 +1620,10 @@ match_type_spec (gfc_typespec * ts, int implicit_flag)
if (gfc_match (" double complex") == MATCH_YES)
{
+ if (gfc_notify_std (GFC_STD_GNU, "DOUBLE COMPLEX at %C does not "
+ "conform to the Fortran 95 standard") == FAILURE)
+ return MATCH_ERROR;
+
ts->type = BT_COMPLEX;
ts->kind = gfc_default_double_kind;
return MATCH_YES;