aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-xtensa.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-12-15 22:09:06 +1030
committerAlan Modra <amodra@gmail.com>2020-12-16 15:17:53 +1030
commit61d2295d723c7d202f530ccca1eacb4cfedf06d9 (patch)
tree3ca0532f0e9caf045220658c07a5a118b9874893 /bfd/elf32-xtensa.c
parent8cb1c2c857aa176a410126b4dc01d6fceaf21356 (diff)
downloadgdb-61d2295d723c7d202f530ccca1eacb4cfedf06d9.zip
gdb-61d2295d723c7d202f530ccca1eacb4cfedf06d9.tar.gz
gdb-61d2295d723c7d202f530ccca1eacb4cfedf06d9.tar.bz2
xtensa constify
Move lots of read-only arrays to .rodata. include/ * xtensa-isa-internal.h (xtensa_format_internal), (xtensa_slot_internal, xtensa_operand_internal), (xtensa_arg_internal, xtensa_iclass_internal), (xtensa_opcode_internal, xtensa_regfile_internal), (xtensa_interface_internal, xtensa_funcUnit_internal), (xtensa_state_internal, xtensa_sysreg_internal): Constify. bfd/ * elf32-xtensa.c (narrowable, widenable): Constify. * xtensa-modules.c: Constify many arrays.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r--bfd/elf32-xtensa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index 5824c59..1b8a719 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -4341,7 +4341,7 @@ struct string_pair
const char *narrow;
};
-struct string_pair narrowable[] =
+const struct string_pair narrowable[] =
{
{ "add", "add.n" },
{ "addi", "addi.n" },
@@ -4354,7 +4354,7 @@ struct string_pair narrowable[] =
{ "or", "mov.n" } /* special case only when op1 == op2 */
};
-struct string_pair widenable[] =
+const struct string_pair widenable[] =
{
{ "add", "add.n" },
{ "addi", "addi.n" },