From d467df4e861bf5c33f690be95e55a31524e9720c Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Fri, 18 May 2012 23:53:19 +0000 Subject: [PATCH] * mips-tdep.c (mips_reg3_to_reg): Optimize storage. --- gdb/ChangeLog | 4 ++++ gdb/mips-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d35a2e3613f..615b8354057 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-05-18 Maciej W. Rozycki + + * mips-tdep.c (mips_reg3_to_reg): Optimize storage. + 2012-05-18 Maciej W. Rozycki * NEWS: Add microMIPS support and "set mips compression", diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index b9eca2b0dea..909a5a6fd54 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -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 -- 2.30.2