2010-06-11 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Fri, 11 Jun 2010 09:04:39 +0000 (09:04 +0000)
committerTristan Gingold <gingold@adacore.com>
Fri, 11 Jun 2010 09:04:39 +0000 (09:04 +0000)
* unwind-ia64.c (unw_print_abreg): Add const to special_reg.
(UNW_DEC_ABI): Ditto for abiname.
(unw_decode_table): Make it const.

binutils/ChangeLog
binutils/unwind-ia64.c

index 4c59e33148f7e5b40f95014bf715a8fdf6e54b36..583c9d61cf636db0e1b421d2a65900913db3ef2d 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-11  Tristan Gingold  <gingold@adacore.com>
+
+       * unwind-ia64.c (unw_print_abreg): Add const to special_reg.
+       (UNW_DEC_ABI): Ditto for abiname.
+       (unw_decode_table): Make it const.
+
 2010-06-10  Tristan Gingold  <gingold@adacore.com>
 
        * readelf.c (slurp_ia64_unwind_table): IA64 rela relocations are
index 57034700a41eb3a4a462172032b6a92c9364fe7f..38382351a8f6e33b2422e80c1cb08b4010c61dac 100644 (file)
@@ -112,7 +112,7 @@ unw_print_frmask (char *cp, unsigned int mask)
 static void
 unw_print_abreg (char *cp, unsigned int abreg)
 {
-  static const char *special_reg[16] =
+  static const char * const special_reg[16] =
   {
     "pr", "psp", "@priunat", "rp", "ar.bsp", "ar.bspstore", "ar.rnat",
     "ar.unat", "ar.fpsr", "ar.pfs", "ar.lc",
@@ -303,7 +303,7 @@ typedef bfd_vma unw_word;
 #define UNW_DEC_ABI(fmt, abi, context, arg)                    \
   do                                                           \
     {                                                          \
-      static const char *abiname[] =                           \
+      static const char * const abiname[] =                    \
       {                                                                \
        "@svr4", "@hpux", "@nt"                                 \
       };                                                       \
@@ -1044,7 +1044,7 @@ unw_decode_b3_x4 (const unsigned char *dp, unsigned int code, void *arg)
 typedef const unsigned char *(*unw_decoder)
      (const unsigned char *, unsigned int, void *);
 
-static unw_decoder unw_decode_table[2][8] =
+static const unw_decoder unw_decode_table[2][8] =
   {
     /* prologue table: */
     {