This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] fortran/*.c: Fix typos in error messages.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: fortran at gcc dot gnu dot org
- Date: Sun, 28 May 2006 22:19:45 -0700
- Subject: [patch] fortran/*.c: Fix typos in error messages.
Hi,
Tested on x86_64-pc-linux-gnu. Committed as obvious.
Kazu Hirata
2006-05-29 Kazu Hirata <kazu@codesourcery.com>
* options.c, primary.c, resolve.c, trans-common.c: Fix typos
in error messages.
Index: fortran/options.c
===================================================================
--- fortran/options.c (revision 114167)
+++ fortran/options.c (working copy)
@@ -533,7 +533,7 @@ gfc_handle_option (size_t scode, const c
case OPT_fmax_identifier_length_:
if (value > GFC_MAX_SYMBOL_LEN)
- gfc_fatal_error ("Maximum supported idenitifier length is %d",
+ gfc_fatal_error ("Maximum supported identifier length is %d",
GFC_MAX_SYMBOL_LEN);
gfc_option.max_identifier_length = value;
break;
Index: fortran/primary.c
===================================================================
--- fortran/primary.c (revision 114167)
+++ fortran/primary.c (working copy)
@@ -265,7 +265,7 @@ match_hollerith_constant (gfc_expr ** re
}
if (e->ts.kind != gfc_default_integer_kind)
{
- gfc_error ("Invalid Hollerith constant: Interger kind at %L "
+ gfc_error ("Invalid Hollerith constant: Integer kind at %L "
"should be default", &old_loc);
goto cleanup;
}
Index: fortran/resolve.c
===================================================================
--- fortran/resolve.c (revision 114170)
+++ fortran/resolve.c (working copy)
@@ -3992,7 +3992,7 @@ gfc_find_forall_index (gfc_expr *expr, g
break;
default:
- gfc_error("expresion reference type error at %L", &expr->where);
+ gfc_error("expression reference type error at %L", &expr->where);
}
tmp = tmp->next;
}
Index: fortran/trans-common.c
===================================================================
--- fortran/trans-common.c (revision 114170)
+++ fortran/trans-common.c (working copy)
@@ -848,7 +848,7 @@ align_segment (unsigned HOST_WIDE_INT *
{
/* Aligning this field would misalign a previous field. */
gfc_error ("The equivalence set for variable '%s' "
- "declared at %L violates alignment requirents",
+ "declared at %L violates alignment requirements",
s->sym->name, &s->sym->declared_at);
}
offset += this_offset;