aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-06 13:14:46 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-06 20:32:31 -0400
commitee7af46230f0382eb5091592ce0d5e45ee2fa142 (patch)
tree908d6f1023b28959143870740081252e7cbada3a
parent6b015f8977a876c4e1c77fd9732826e8da9c84a4 (diff)
downloadgdb-ee7af46230f0382eb5091592ce0d5e45ee2fa142.zip
gdb-ee7af46230f0382eb5091592ce0d5e45ee2fa142.tar.gz
gdb-ee7af46230f0382eb5091592ce0d5e45ee2fa142.tar.bz2
sim: sh: constify a few read-only lookup tables
-rw-r--r--sim/sh/gencode.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c
index 28b4832..9ef8b46 100644
--- a/sim/sh/gencode.c
+++ b/sim/sh/gencode.c
@@ -3244,17 +3244,17 @@ ppi_gensim (void)
printf ("ppi_insn (int iword)\n");
printf ("{\n");
printf (" /* 'ee' = [x0, x1, y0, a1] */\n");
- printf (" static char e_tab[] = { 8, 9, 10, 5};\n");
+ printf (" static char const e_tab[] = { 8, 9, 10, 5};\n");
printf (" /* 'ff' = [y0, y1, x0, a1] */\n");
- printf (" static char f_tab[] = {10, 11, 8, 5};\n");
+ printf (" static char const f_tab[] = {10, 11, 8, 5};\n");
printf (" /* 'xx' = [x0, x1, a0, a1] */\n");
- printf (" static char x_tab[] = { 8, 9, 7, 5};\n");
+ printf (" static char const x_tab[] = { 8, 9, 7, 5};\n");
printf (" /* 'yy' = [y0, y1, m0, m1] */\n");
- printf (" static char y_tab[] = {10, 11, 12, 14};\n");
+ printf (" static char const y_tab[] = {10, 11, 12, 14};\n");
printf (" /* 'gg' = [m0, m1, a0, a1] */\n");
- printf (" static char g_tab[] = {12, 14, 7, 5};\n");
+ printf (" static char const g_tab[] = {12, 14, 7, 5};\n");
printf (" /* 'uu' = [x0, y0, a0, a1] */\n");
- printf (" static char u_tab[] = { 8, 10, 7, 5};\n");
+ printf (" static char const u_tab[] = { 8, 10, 7, 5};\n");
printf ("\n");
printf (" int z;\n");
printf (" int res, res_grd;\n");