diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-05-18 23:53:19 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-05-18 23:53:19 +0000 |
commit | d467df4e861bf5c33f690be95e55a31524e9720c (patch) | |
tree | ad81628fbd5d5bb95275059fa5a320abf9c1d299 | |
parent | 4cc0665f24bbd86deb1848cd67f90994a1b527b2 (diff) | |
download | fsf-binutils-gdb-d467df4e861bf5c33f690be95e55a31524e9720c.zip fsf-binutils-gdb-d467df4e861bf5c33f690be95e55a31524e9720c.tar.gz fsf-binutils-gdb-d467df4e861bf5c33f690be95e55a31524e9720c.tar.bz2 |
* mips-tdep.c (mips_reg3_to_reg): Optimize storage.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d35a2e3..615b835 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index b9eca2b..909a5a6 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 |