aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-08-14 03:09:14 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-08-14 03:09:14 +0000
commitd3969c34076167e10d0c53833f19348db7bd54e6 (patch)
tree9cfee148f78419bc15190281329a3c3b5d3f13a5 /gcc
parentf5cc59a784ee27e0713b6c3114fe5d629247a46a (diff)
downloadgcc-d3969c34076167e10d0c53833f19348db7bd54e6.zip
gcc-d3969c34076167e10d0c53833f19348db7bd54e6.tar.gz
gcc-d3969c34076167e10d0c53833f19348db7bd54e6.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-opts.c2
-rw-r--r--gcc/ra-build.c2
-rw-r--r--gcc/ra.c2
4 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7aefc5d..92750d3 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 64369a6..5ba58cb 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 87683cb..e1ad650 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 dbfce94..ab52b42 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