[committed] Fix --import-optimize/--no-import-optimize

Tom de Vries tdevries@suse.de
Wed Jan 1 00:00:00 GMT 2020


Hi,

Commit 50c5518 "Add --import-optimize/--no-import-optimize" actually
introduced --import-optimization/--no-import-optimization:
...
$ dwz hello --import-optimize 2>/dev/null; echo $?
1
$ dwz hello --import-optimization 2>/dev/null; echo $?
0
...

Fix this by making dwz accepting --import-optimize:
...
$ dwz hello --import-optimize 2>/dev/null; echo $?
0
...

Committed to trunk.

Thanks,
- Tom

Fix --import-optimize/--no-import-optimize

2020-02-13  Tom de Vries  <tdevries@suse.de>

	* dwz.c (dwz_options, dwz_common_options_help): Fix
	--import-optimization/--no-import-optimization entries.

---
 dwz.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dwz.c b/dwz.c
index 86d35b0..f08bf4e 100644
--- a/dwz.c
+++ b/dwz.c
@@ -14487,9 +14487,9 @@ static struct option dwz_options[] =
   { "multifile-name",	 required_argument, 0, 'M' },
   { "relative",		 no_argument,	    0, 'r' },
   { "version",		 no_argument,	    0, 'v' },
-  { "import-optimization",
+  { "import-optimize",
 			 no_argument,	    &import_opt_p, 1 },
-  { "no-import-optimization",
+  { "no-import-optimize",
 			 no_argument,	    &import_opt_p, 0 },
 #if DEVEL
   { "devel-trace",	 no_argument,	    &tracing, 1 },
@@ -14544,9 +14544,9 @@ static struct option_help dwz_common_options_help[] =
     "Enable/disable one definition rule optimization." },
   { NULL, "odr-mode", "<basic|link>", "link",
     "Set aggressiveness level of one definition rule optimization." },
-  { NULL, "import-optimization", NULL, NULL,
+  { NULL, "import-optimize", NULL, NULL,
     NULL },
-  { NULL, "no-import-optimization", NULL, "Enabled",
+  { NULL, "no-import-optimize", NULL, "Enabled",
     "Enable/disable optimization that reduces the number of"
     " DW_TAG_imported_unit DIEs." }
 };



More information about the Dwz mailing list