diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-14 03:09:14 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-14 03:09:14 +0000 |
commit | 7f7c78a80b65595b550444948974b5c15c96b390 (patch) | |
tree | 9cfee148f78419bc15190281329a3c3b5d3f13a5 /gcc | |
parent | c837ae19feacbdddd3fa2cbdcbe44bb1db72bb5e (diff) | |
download | gcc-7f7c78a80b65595b550444948974b5c15c96b390.tar.gz |
* c-opts.c (lang_flags): Const-ify.
* ra-build.c (undef_table): Likewise.
* ra.c (eliminables): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56271 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c-opts.c | 2 | ||||
-rw-r--r-- | gcc/ra-build.c | 2 | ||||
-rw-r--r-- | gcc/ra.c | 2 |
4 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7aefc5d5108..92750d31968 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 64369a6a835..5ba58cba57c 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -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; diff --git a/gcc/ra-build.c b/gcc/ra-build.c index 87683cb9c02..e1ad650bc7d 100644 --- a/gcc/ra-build.c +++ b/gcc/ra-build.c @@ -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)}, @@ -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 |