Commit ea22a560 authored by Franz Sirl's avatar Franz Sirl Committed by Nick Clifton

Reimport a patch to fix building gold on Cygwin64 systms: m.arena has size_t...

Reimport a patch to fix building gold on Cygwin64 systms: m.arena has size_t on Cygwin64 and thus errors out due to -Werror=format.

gold	* main.cc: Print m.arena as long long.
parent 557b8e0e
2018-07-11 Nick Clifton <nickc@redhat.com>
Reimport this patch:
2018-01-24 Franz Sirl <franz.sirl-kernel@lauterbach.com>
* main.cc: Print m.arena as long long.
2018-07-09 Cary Coutant <ccoutant@gmail.com>
* incremental.cc (Sized_incremental_binary::setup_readers): Use
......
......@@ -292,8 +292,8 @@ main(int argc, char** argv)
#ifdef HAVE_MALLINFO
struct mallinfo m = mallinfo();
fprintf(stderr, _("%s: total space allocated by malloc: %d bytes\n"),
program_name, m.arena);
fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
program_name, static_cast<long long>(m.arena));
#endif
File_read::print_stats();
Archive::print_stats();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment