aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-d30v.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-10-29 08:08:02 +0100
committerJan Beulich <jbeulich@suse.com>2024-10-29 08:08:02 +0100
commit641cf0e2c049efac533cbc517a18c04a150b2595 (patch)
treeed576e9367ec421618c0b0a31a892cb16377b8f3 /gas/config/tc-d30v.c
parenta8ff55b5b47737e666bfe35d78fedee94675aa36 (diff)
downloadgdb-641cf0e2c049efac533cbc517a18c04a150b2595.zip
gdb-641cf0e2c049efac533cbc517a18c04a150b2595.tar.gz
gdb-641cf0e2c049efac533cbc517a18c04a150b2595.tar.bz2
gas: constify md_{short,long}opts and md_longopts_size
First of all make the declarations globally visible, such that producer and consumer actually share them. For the latter two simply add const (as PPC already had it,), while for the former achieve the effect by converting to an array: There's no need for the extra level of indirection.
Diffstat (limited to 'gas/config/tc-d30v.c')
-rw-r--r--gas/config/tc-d30v.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c
index 0eab055..70ea71c 100644
--- a/gas/config/tc-d30v.c
+++ b/gas/config/tc-d30v.c
@@ -27,7 +27,7 @@
const char comment_chars[] = ";";
const char line_comment_chars[] = "#";
const char line_separator_chars[] = "";
-const char *md_shortopts = "OnNcC";
+const char md_shortopts[] = "OnNcC";
const char EXP_CHARS[] = "eE";
const char FLT_CHARS[] = "dD";
@@ -107,12 +107,12 @@ static symbolS *d30v_last_label;
#define NOP_RIGHT ((long long) NOP)
#define NOP2 (FM00 | NOP_LEFT | NOP_RIGHT)
-struct option md_longopts[] =
+const struct option md_longopts[] =
{
{NULL, no_argument, NULL, 0}
};
-size_t md_longopts_size = sizeof (md_longopts);
+const size_t md_longopts_size = sizeof (md_longopts);
/* Opcode hash table. */
static htab_t d30v_hash;