Fix typo in previous patch: should use struct mallinfo2.
authorCary Coutant <ccoutant@gmail.com>
Fri, 19 Mar 2021 22:29:49 +0000 (15:29 -0700)
committerCary Coutant <ccoutant@gmail.com>
Fri, 19 Mar 2021 22:29:49 +0000 (15:29 -0700)
PR gold/26585
* main.cc (main): Fix typo in previous patch.

gold/ChangeLog
gold/main.cc

index bd23e151d3c30dd7c519d5979b0d7c9fbfadba06..2d4e6092a271ad2b977aa9aecfbc404f0b4706b8 100644 (file)
@@ -1,8 +1,14 @@
-2021-03-19  Duncan Simpson <dr.duncan.p.simpson@gmail.com>
+2021-03-19  Cary Coutant  <ccoutant@gmail.com>
+
+       PR gold/26585
+       * main.cc (main): Fix typo in previous patch.
+
+2021-03-19  Duncan Simpson  <dr.duncan.p.simpson@gmail.com>
 
        PR gold/26585
        * configure.ac: Add check for mallinfo2.
        * configure: Regenerate.
+       * config.in: Regenerate from previous commit.
        * main.cc (main): Use mallinfo2 if available.
 
 2021-03-19  Cary Coutant  <ccoutant@gmail.com>
index 89bc40b22af50de39fd0afeb5e694bdf6771ad50..ff44cbb7add7f4d8e9e98e843e9a4f5799ac74d2 100644 (file)
@@ -291,7 +291,7 @@ main(int argc, char** argv)
               elapsed.wall / 1000, (elapsed.wall % 1000) * 1000);
 
 #if defined(HAVE_MALLINFO2)
-      struct mallinfo m = mallinfo2();
+      struct mallinfo2 m = mallinfo2();
       fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
              program_name, static_cast<long long>(m.arena));
 #elif defined(HAVE_MALLINFO)