Commit d3969c34 by Kaveh R. Ghazi Committed by Kaveh Ghazi

c-opts.c (lang_flags): Const-ify.

	* c-opts.c (lang_flags): Const-ify.
	* ra-build.c (undef_table): Likewise.
	* ra.c (eliminables): Likewise.

From-SVN: r56271
parent f5cc59a7
2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* c-opts.c (lang_flags): Const-ify.
* ra-build.c (undef_table): Likewise.
* ra.c (eliminables): Likewise.
2002-08-14 Gabriel Dos Reis <gdr@nerim.net> 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
* tree.h: Guard against multiple inclusion. * tree.h: Guard against multiple inclusion.
......
...@@ -529,7 +529,7 @@ c_common_decode_option (argc, argv) ...@@ -529,7 +529,7 @@ c_common_decode_option (argc, argv)
int argc; int argc;
char **argv; char **argv;
{ {
static int lang_flags[] = {CL_C_ONLY, CL_C, CL_CXX_ONLY, CL_CXX}; static const int lang_flags[] = {CL_C_ONLY, CL_C, CL_CXX_ONLY, CL_CXX};
size_t opt_index; size_t opt_index;
const char *opt, *arg = 0; const char *opt, *arg = 0;
char *dup = 0; char *dup = 0;
......
...@@ -346,7 +346,7 @@ static struct undef_table_s { ...@@ -346,7 +346,7 @@ static struct undef_table_s {
unsigned int new_undef; unsigned int new_undef;
/* size | (byte << 16) */ /* size | (byte << 16) */
unsigned int size_word; unsigned int size_word;
} undef_table [] = { } const undef_table [] = {
{ 0, BL_TO_WORD (0, 0)}, /* 0 */ { 0, BL_TO_WORD (0, 0)}, /* 0 */
{ 0, BL_TO_WORD (0, 1)}, { 0, BL_TO_WORD (0, 1)},
{ 0, BL_TO_WORD (1, 1)}, { 0, BL_TO_WORD (1, 1)},
......
...@@ -464,7 +464,7 @@ init_ra () ...@@ -464,7 +464,7 @@ init_ra ()
int i; int i;
HARD_REG_SET rs; HARD_REG_SET rs;
#ifdef ELIMINABLE_REGS #ifdef ELIMINABLE_REGS
static struct {int from, to; } eliminables[] = ELIMINABLE_REGS; static const struct {const int from, to; } eliminables[] = ELIMINABLE_REGS;
unsigned int j; unsigned int j;
#endif #endif
int need_fp int need_fp
......
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