aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/parse.c
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>2005-10-24 11:11:51 +0200
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2005-10-24 09:11:51 +0000
commit4c93c95ac5086b4bb0562e87dcfc338bd4b2225b (patch)
tree0248353a9119382348e932d54cf3de18649875b6 /gcc/fortran/parse.c
parent835681c8a218a2625d97f84c08a3789b373a2336 (diff)
downloadgcc-4c93c95ac5086b4bb0562e87dcfc338bd4b2225b.zip
gcc-4c93c95ac5086b4bb0562e87dcfc338bd4b2225b.tar.gz
gcc-4c93c95ac5086b4bb0562e87dcfc338bd4b2225b.tar.bz2
re PR fortran/15586 (gfortran should support i18n in its compiler messages)
PR fortran/15586 * arith.c (gfc_arith_error): Change message to include locus. (check_result, eval_intrinsic, gfc_int2int, gfc_real2real, gfc_real2complex, gfc_complex2real, gfc_complex2complex): Use the new gfc_arith_error. (arith_error): Rewrite full error messages instead of building them from pieces. * check.c (must_be): Removed. (type_check, numeric_check, int_or_real_check, real_or_complex_check, kind_check, double_check, logical_array_check, array_check, scalar_check, same_type_check, rank_check, kind_value_check, variable_check, gfc_check_allocated, gfc_check_associated, gfc_check_cmplx, gfc_check_dcmplx, gfc_check_dot_product, gfc_check_index, gfc_check_kind, gfc_check_matmul, gfc_check_null, gfc_check_pack, gfc_check_precision, gfc_check_present, gfc_check_spread): Rewrite full error messages instead of building them from pieces. * decl.c (gfc_match_entry): Rewrite full error messages instead of building them from pieces. * parse.c (gfc_state_name): Remove. * parse.h: Remove prototype for gfc_state_name. From-SVN: r105844
Diffstat (limited to 'gcc/fortran/parse.c')
-rw-r--r--gcc/fortran/parse.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c
index 043c3b4..69459251 100644
--- a/gcc/fortran/parse.c
+++ b/gcc/fortran/parse.c
@@ -959,63 +959,6 @@ gfc_ascii_statement (gfc_statement st)
}
-/* Return the name of a compile state. */
-
-const char *
-gfc_state_name (gfc_compile_state state)
-{
- const char *p;
-
- switch (state)
- {
- case COMP_PROGRAM:
- p = _("a PROGRAM");
- break;
- case COMP_MODULE:
- p = _("a MODULE");
- break;
- case COMP_SUBROUTINE:
- p = _("a SUBROUTINE");
- break;
- case COMP_FUNCTION:
- p = _("a FUNCTION");
- break;
- case COMP_BLOCK_DATA:
- p = _("a BLOCK DATA");
- break;
- case COMP_INTERFACE:
- p = _("an INTERFACE");
- break;
- case COMP_DERIVED:
- p = _("a DERIVED TYPE block");
- break;
- case COMP_IF:
- p = _("an IF-THEN block");
- break;
- case COMP_DO:
- p = _("a DO block");
- break;
- case COMP_SELECT:
- p = _("a SELECT block");
- break;
- case COMP_FORALL:
- p = _("a FORALL block");
- break;
- case COMP_WHERE:
- p = _("a WHERE block");
- break;
- case COMP_CONTAINS:
- p = _("a contained subprogram");
- break;
-
- default:
- gfc_internal_error ("gfc_state_name(): Bad state");
- }
-
- return p;
-}
-
-
/* Do whatever is necessary to accept the last statement. */
static void