From: Mike Frysinger Date: Sat, 6 Nov 2021 17:14:46 +0000 (-0400) Subject: sim: sh: constify a few read-only lookup tables X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee7af46230f0382eb5091592ce0d5e45ee2fa142;p=binutils-gdb.git sim: sh: constify a few read-only lookup tables --- diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index 28b483208f3..9ef8b4610be 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");