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
This commit is contained in:
parent
f5cc59a784
commit
d3969c3407
4 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
* tree.h: Guard against multiple inclusion.
|
||||
|
|
|
@ -529,7 +529,7 @@ c_common_decode_option (argc, argv)
|
|||
int argc;
|
||||
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;
|
||||
const char *opt, *arg = 0;
|
||||
char *dup = 0;
|
||||
|
|
|
@ -346,7 +346,7 @@ static struct undef_table_s {
|
|||
unsigned int new_undef;
|
||||
/* size | (byte << 16) */
|
||||
unsigned int size_word;
|
||||
} undef_table [] = {
|
||||
} const undef_table [] = {
|
||||
{ 0, BL_TO_WORD (0, 0)}, /* 0 */
|
||||
{ 0, BL_TO_WORD (0, 1)},
|
||||
{ 0, BL_TO_WORD (1, 1)},
|
||||
|
|
2
gcc/ra.c
2
gcc/ra.c
|
@ -464,7 +464,7 @@ init_ra ()
|
|||
int i;
|
||||
HARD_REG_SET rs;
|
||||
#ifdef ELIMINABLE_REGS
|
||||
static struct {int from, to; } eliminables[] = ELIMINABLE_REGS;
|
||||
static const struct {const int from, to; } eliminables[] = ELIMINABLE_REGS;
|
||||
unsigned int j;
|
||||
#endif
|
||||
int need_fp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue