]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-opts.c (lang_flags): Const-ify.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 14 Aug 2002 03:09:14 +0000 (03:09 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 14 Aug 2002 03:09:14 +0000 (03:09 +0000)
* c-opts.c (lang_flags): Const-ify.
* ra-build.c (undef_table): Likewise.
* ra.c (eliminables): Likewise.

From-SVN: r56271

gcc/ChangeLog
gcc/c-opts.c
gcc/ra-build.c
gcc/ra.c

index 7aefc5d51087393360f093a624e177551a254f75..92750d3196871eef5f1f8e833ecd33b6b09f2ee9 100644 (file)
@@ -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.
index 64369a6a8359f15c21dfcfa678c26f100bbeb9cb..5ba58cba57cab959b8671b07d80d283036dc1ff1 100644 (file)
@@ -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;
index 87683cb9c02c94da64c629f5500270fdf139a30e..e1ad650bc7d12835119e6a18278c11a7e885c937 100644 (file)
@@ -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)},
index dbfce942dda93cdd374c4d3857c66bc985493207..ab52b4224712c4c2c40ff5f1948b4be07cdfa38c 100644 (file)
--- 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