diagnostic.c (diagnostic_kind_text): Const-ify.

* diagnostic.c (diagnostic_kind_text): Const-ify.
	* gengtype.c (lang_names): Likewise.

From-SVN: r54840
This commit is contained in:
Kaveh R. Ghazi 2002-06-20 16:59:01 +00:00 committed by Kaveh Ghazi
parent b0dd480873
commit ef9772c835
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* diagnostic.c (diagnostic_kind_text): Const-ify.
* gengtype.c (lang_names): Likewise.
Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
* combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.

View File

@ -832,7 +832,7 @@ char *
diagnostic_build_prefix (diagnostic)
diagnostic_info *diagnostic;
{
static const char *diagnostic_kind_text[] = {
static const char *const diagnostic_kind_text[] = {
#define DEFINE_DIAGNOSTIC_KIND(K, T) (T),
#include "diagnostic.def"
#undef DEFINE_DIAGNOSTIC_KIND

View File

@ -522,7 +522,7 @@ enum {
BASE_FILE_COBOL
};
static const char *lang_names[] = {
static const char *const lang_names[] = {
"c", "objc", "cp", "treelang", "cobol", "f", "ada", "java"
};
#define NUM_BASE_FILES (sizeof (lang_names) / sizeof (lang_names[0]))