From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH/committed 1/2] sim: rx: constify some read-only global vars
Date: Mon, 4 Dec 2023 23:50:58 -0500 [thread overview]
Message-ID: <20231205045059.4129-1-vapier@gentoo.org> (raw)
---
sim/rx/rx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sim/rx/rx.c b/sim/rx/rx.c
index 4a7291e6d248..7502131f1319 100644
--- a/sim/rx/rx.c
+++ b/sim/rx/rx.c
@@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "misc.h"
#ifdef WITH_PROFILE
-static const char * id_names[] = {
+static const char * const id_names[] = {
"RXO_unknown",
"RXO_mov", /* d = s (signed) */
"RXO_movbi", /* d = [s,s2] (signed) */
@@ -142,7 +142,7 @@ static const char * id_names[] = {
"RXO_sccnd", /* d = cond(s) ? 1 : 0 */
};
-static const char * optype_names[] = {
+static const char * const optype_names[] = {
" - ",
"#Imm", /* #addend */
" Rn ", /* Rn */
@@ -332,7 +332,7 @@ div_cycles(long num, long den)
#endif /* else CYCLE_ACCURATE */
-static int size2bytes[] = {
+static const int size2bytes[] = {
4, 1, 1, 1, 2, 2, 2, 3, 4
};
--
2.43.0
next reply other threads:[~2023-12-05 4:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-05 4:50 Mike Frysinger [this message]
2023-12-05 4:50 ` [PATCH/committed 2/2] sim: rx: mark unused static var as unused Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231205045059.4129-1-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).