* mips-tdep.c (mips_reg3_to_reg): Optimize storage.
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 18 May 2012 23:53:19 +0000 (23:53 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Fri, 18 May 2012 23:53:19 +0000 (23:53 +0000)
gdb/ChangeLog
gdb/mips-tdep.c

index d35a2e3..615b835 100644 (file)
@@ -1,5 +1,9 @@
 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
 
+       * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
+
+2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
+
        * NEWS: Add microMIPS support and "set mips compression",
        "show mips compression" commands.
        * mips-tdep.h (mips_isa): New enum.
index b9eca2b..909a5a6 100644 (file)
@@ -781,7 +781,7 @@ mips_ax_pseudo_register_push_stack (struct gdbarch *gdbarch,
 }
 
 /* Table to translate 3-bit register field to actual register number.  */
-static int mips_reg3_to_reg[8] = { 16, 17, 2, 3, 4, 5, 6, 7 };
+static const signed char mips_reg3_to_reg[8] = { 16, 17, 2, 3, 4, 5, 6, 7 };
 
 /* Heuristic_proc_start may hunt through the text section for a long
    time across a 2400 baud serial line.  Allows the user to limit this