2.30 branch created, snapshot available
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Wed Jan 24 13:30:00 GMT 2018
Am 2018-01-13 um 15:27 schrieb Nick Clifton:
> Hi Guys,
>
> The 2.30 branch has now been created:
>
> git clone git://sourceware.org/git/binutils-gdb.git -b binutils-2_30-branch 2.30
>
> A snapshot of the sources is also available here:
>
> ftp://sourceware.org/pub/binutils/snapshots/binutils-2.30.tar.xz
>
> Please could all patches for the branch be run by me.
> The rules for the branch are:
>
> * No new features.
> * Target specific bug fixes are OK.
> * Generic bug fixes are OK if they are important and widely tested.
> * Documentation updates/fixes are OK.
> * Translation updates are OK.
> * Fixes for testsuite failures are OK.
>
> Ideally I would like to make the release happen in two weeks time,
> ie Saturday 27th Jan. Which I hope will be enough time for everyone
> to get their final fixes in.
Hi,
I just stumbled over this with 2.29.1 while building a cross-toolchain,
on Cygwin64, but it's still the same for 2.30. m.arena has size_t on
Cygwin64 and thus errors out due to -Werror=format.
This little patch (similar to code further below) fixes it.
2018-01-24 Franz Sirl <franz.sirl-kernel@lauterbach.com>
* main.cc: Print m.arena as long long.
-------------- next part --------------
diff --git a/gold/main.cc b/gold/main.cc
index aa6c698f91..06d810f5e9 100644
--- a/gold/main.cc
+++ b/gold/main.cc
@@ -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();
More information about the Binutils
mailing list