mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 01:40:32 +08:00
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
@ -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)},
|
||||
|
Loading…
x
Reference in New Issue
Block a user