From: Takayuki 'January June' Suwa Date: Thu, 19 Mar 2026 22:59:16 +0000 (+0900) Subject: xtensa: Specify the pre-configured table array as const X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaea8940b7dbcaa402dcc14418cd426950d9aa0f;p=thirdparty%2Fgcc.git xtensa: Specify the pre-configured table array as const gcc/ChangeLog: * config/xtensa/xtensa.cc (gen_int_relational): Specify the table array "info" and the pointer to its elements as const. --- diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index 4a9b156e0db..235b4e0446d 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -734,7 +734,7 @@ gen_int_relational (enum rtx_code test_code, /* relational test (EQ, etc) */ int unsignedp; /* != 0 for unsigned comparisons. */ }; - static struct cmp_info info[ (int)ITEST_MAX ] = { + static const struct cmp_info info[ (int)ITEST_MAX ] = { { EQ, xtensa_b4const_or_zero, 0, 0, 0, 0, 0 }, /* EQ */ { NE, xtensa_b4const_or_zero, 0, 0, 0, 0, 0 }, /* NE */ @@ -752,7 +752,7 @@ gen_int_relational (enum rtx_code test_code, /* relational test (EQ, etc) */ enum internal_test test; machine_mode mode; - struct cmp_info *p_info; + const struct cmp_info *p_info; int invert; test = map_test_to_internal_test (test_code);