X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gold%2Fmain.cc;h=db3d1e4430b7835fd51387d2f1951fc56de784e2;hb=8aaaf7577f070c91086533d959ac36a15d1d604f;hp=048454186f8393e84baab1576c40669da2d06c77;hpb=b490c0bbaf81fb741c6751eff30082883343e2ff;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/main.cc b/gold/main.cc index 048454186f..db3d1e4430 100644 --- a/gold/main.cc +++ b/gold/main.cc @@ -1,6 +1,6 @@ // main.cc -- gold main function. -// Copyright 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. +// Copyright (C) 2006-2019 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -47,6 +47,7 @@ #include "gc.h" #include "icf.h" #include "incremental.h" +#include "gdb-index.h" #include "timer.h" using namespace gold; @@ -291,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(m.arena)); #endif File_read::print_stats(); Archive::print_stats(); @@ -301,6 +302,7 @@ main(int argc, char** argv) program_name, static_cast(layout.output_file_size())); symtab.print_stats(); layout.print_stats(); + Gdb_index::print_stats(); Free_list::print_stats(); }