X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gprof%2Fbasic_blocks.c;h=7a0caeaffde63e87c2a5886a788f689c5ead1bf3;hb=b4f261e094f4807a2da1dc62c7945e5898ed4680;hp=57e3c7a33ab3f090abcf0744417abec7c91a1cac;hpb=3e8f6abf1e13bfd39a48b297f2679f5dd5fe6a3a;p=deliverable%2Fbinutils-gdb.git diff --git a/gprof/basic_blocks.c b/gprof/basic_blocks.c index 57e3c7a33a..7a0caeaffd 100644 --- a/gprof/basic_blocks.c +++ b/gprof/basic_blocks.c @@ -2,7 +2,8 @@ of basic-block info to/from gmon.out; computing and formatting of basic-block related statistics. - Copyright 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 1999, 2000, 2001, 2002, 2004, 2005 + Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -18,8 +19,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ #include "libiberty.h" #include "gprof.h" @@ -118,7 +119,7 @@ fskip_string (FILE *fp) void bb_read_rec (FILE *ifp, const char *filename) { - int nblocks, b; + unsigned int nblocks, b; bfd_vma addr, ncalls; Sym *sym; @@ -280,6 +281,8 @@ print_exec_counts () for (i = 0; i < len; ++i) { + sym = sorted_bbs [i]; + if (sym->ncalls > 0 || ! ignore_zeros) { /* FIXME: This only works if bfd_vma is unsigned long. */