Commit ef9772c8 by Kaveh R. Ghazi Committed by Kaveh Ghazi

diagnostic.c (diagnostic_kind_text): Const-ify.

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

From-SVN: r54840
parent b0dd4808
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.
......
......@@ -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
......
......@@ -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]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment