From 2916e3e18fe7fb15f3153e71404987ea721da84f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 7 Mar 2021 22:01:47 -0500 Subject: [PATCH] sim: igen: update options API 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 3fb811e248e..0eeda65cb4e 100644 --- a/sim/igen/ChangeLog +++ b/sim/igen/ChangeLog @@ -1,3 +1,9 @@ +2021-03-07 Mike Frysinger + + * gen.c (main): Delete options arg to INIT_OPTIONS. + * ld-decode.c (main): Likewise. + * ld-insn.c (main): Likewise. + 2021-03-07 Mike Frysinger * Makefile.in (check): Define. diff --git a/sim/igen/gen.c b/sim/igen/gen.c index cf269a23853..c7d8feb025e 100644 --- a/sim/igen/gen.c +++ b/sim/igen/gen.c @@ -1643,7 +1643,7 @@ main (int argc, char **argv) error (NULL, "Usage: insn \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 a802f9b9c72..75f24279eb2 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 \n"); diff --git a/sim/igen/ld-insn.c b/sim/igen/ld-insn.c index afb3b58ca43..4fdb07e981e 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.2