public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [committed] Fix --import-optimize/--no-import-optimize
@ 2020-01-01  0:00 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2020-01-01  0:00 UTC (permalink / raw)
  To: dwz, jakub

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." }
 };

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-13 14:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-01  0:00 [committed] Fix --import-optimize/--no-import-optimize Tom de Vries

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).