* [PATCH/committed] sim: igen: update options API
@ 2021-03-08 3:03 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2021-03-08 3:03 UTC (permalink / raw)
To: gdb-patches
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-08 3:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-08 3:03 [PATCH/committed] sim: igen: update options API Mike Frysinger
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).