From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH/committed] sim: igen: update options API
Date: Sun, 7 Mar 2021 22:03:24 -0500 [thread overview]
Message-ID: <20210308030324.19936-1-vapier@gentoo.org> (raw)
This local macro doesn't take any args, so adjust the API to match.
No one really noticed as this is behind code that is not normally
built, only when a dev specifically tries to compile it.
---
sim/igen/ChangeLog | 6 ++++++
sim/igen/gen.c | 2 +-
sim/igen/ld-decode.c | 2 +-
sim/igen/ld-insn.c | 2 +-
4 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog
index 3fb811e248e7..0eeda65cb4e9 100644
--- a/sim/igen/ChangeLog
+++ b/sim/igen/ChangeLog
@@ -1,3 +1,9 @@
+2021-03-07 Mike Frysinger <vapier@gentoo.org>
+
+ * gen.c (main): Delete options arg to INIT_OPTIONS.
+ * ld-decode.c (main): Likewise.
+ * ld-insn.c (main): Likewise.
+
2021-03-07 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (check): Define.
diff --git a/sim/igen/gen.c b/sim/igen/gen.c
index cf269a238533..c7d8feb025e6 100644
--- a/sim/igen/gen.c
+++ b/sim/igen/gen.c
@@ -1643,7 +1643,7 @@ main (int argc, char **argv)
error (NULL,
"Usage: insn <filter-in> <hi-bit-nr> <insn-bit-size> <widths> <decode-table> <insn-table>\n");
- INIT_OPTIONS (options);
+ INIT_OPTIONS ();
filter_parse (&options.flags_filter, argv[1]);
diff --git a/sim/igen/ld-decode.c b/sim/igen/ld-decode.c
index a802f9b9c722..75f24279eb2f 100644
--- a/sim/igen/ld-decode.c
+++ b/sim/igen/ld-decode.c
@@ -394,7 +394,7 @@ main (int argc, char **argv)
lf *l;
decode_table *rules;
- INIT_OPTIONS (options);
+ INIT_OPTIONS ();
if (argc != 3)
error (NULL, "Usage: decode <decode-file> <hi-bit-nr>\n");
diff --git a/sim/igen/ld-insn.c b/sim/igen/ld-insn.c
index afb3b58ca432..4fdb07e981e7 100644
--- a/sim/igen/ld-insn.c
+++ b/sim/igen/ld-insn.c
@@ -1803,7 +1803,7 @@ main (int argc, char **argv)
insn_table *isa;
lf *l;
- INIT_OPTIONS (options);
+ INIT_OPTIONS ();
if (argc == 3)
filter_parse (&options.flags_filter, argv[2]);
--
2.30.0
reply other threads:[~2021-03-08 3:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210308030324.19936-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).