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:
parent
b0dd480873
commit
ef9772c835
|
@ -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>
|
Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
|
||||||
|
|
||||||
* combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
|
* combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
|
||||||
|
|
|
@ -832,7 +832,7 @@ char *
|
||||||
diagnostic_build_prefix (diagnostic)
|
diagnostic_build_prefix (diagnostic)
|
||||||
diagnostic_info *diagnostic;
|
diagnostic_info *diagnostic;
|
||||||
{
|
{
|
||||||
static const char *diagnostic_kind_text[] = {
|
static const char *const diagnostic_kind_text[] = {
|
||||||
#define DEFINE_DIAGNOSTIC_KIND(K, T) (T),
|
#define DEFINE_DIAGNOSTIC_KIND(K, T) (T),
|
||||||
#include "diagnostic.def"
|
#include "diagnostic.def"
|
||||||
#undef DEFINE_DIAGNOSTIC_KIND
|
#undef DEFINE_DIAGNOSTIC_KIND
|
||||||
|
|
|
@ -522,7 +522,7 @@ enum {
|
||||||
BASE_FILE_COBOL
|
BASE_FILE_COBOL
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *lang_names[] = {
|
static const char *const lang_names[] = {
|
||||||
"c", "objc", "cp", "treelang", "cobol", "f", "ada", "java"
|
"c", "objc", "cp", "treelang", "cobol", "f", "ada", "java"
|
||||||
};
|
};
|
||||||
#define NUM_BASE_FILES (sizeof (lang_names) / sizeof (lang_names[0]))
|
#define NUM_BASE_FILES (sizeof (lang_names) / sizeof (lang_names[0]))
|
||||||
|
|
Loading…
Reference in New Issue