From d3969c34076167e10d0c53833f19348db7bd54e6 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Wed, 14 Aug 2002 03:09:14 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/c-opts.c | 2 +- gcc/ra-build.c | 2 +- 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 + + * c-opts.c (lang_flags): Const-ify. + * ra-build.c (undef_table): Likewise. + * ra.c (eliminables): Likewise. + 2002-08-14 Gabriel Dos Reis * 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)}, diff --git a/gcc/ra.c b/gcc/ra.c index dbfce942dda..ab52b422471 100644 --- a/gcc/ra.c +++ b/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 -- 2.30.2