public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [committed] Apply multifile_force_{ptr_size,endian} ASAP
@ 2021-03-29  8:14 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2021-03-29  8:14 UTC (permalink / raw)
  To: dwz, jakub, mark

Hi,

Rather than waiting for multi_ptr_size/multi_endian to be set in
write_multifile, apply multifile_force_{ptr_size,endian} ASAP, in
dwz_files_1.  This is a preparation for running write_multifile
in parallel.

Committed to trunk.

Thanks,
- Tom

Apply multifile_force_{ptr_size,endian} ASAP

2021-03-29  Tom de Vries  <tdevries@suse.de>

	* dwz.c (dwz_files_1): Apply multifile_force_ptr_size and
	multifile_force_endian.

---
 dwz.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dwz.c b/dwz.c
index 9adc9df..3ad9c9e 100644
--- a/dwz.c
+++ b/dwz.c
@@ -16502,6 +16502,11 @@ dwz_files_1 (int nr_files, char *files[], bool hardlink,
 
   if (multifile)
     {
+      if (multifile_force_ptr_size)
+	multi_ptr_size = multifile_force_ptr_size;
+      if (multifile_force_endian)
+	multi_endian = multifile_force_endian;
+
       multi_info_fd = make_temp_file ("dwz.debug_info");
       multi_abbrev_fd = make_temp_file ("dwz.debug_abbrev");
       multi_line_fd = make_temp_file ("dwz.debug_line");

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

only message in thread, other threads:[~2021-03-29  8:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29  8:14 [committed] Apply multifile_force_{ptr_size,endian} ASAP 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).