X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gprof%2Fcall_graph.c;h=1ccf94994fe9a14d0ddaaab929f6831ba17fcbcb;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=20977f989f41b9f14f9ab586de4cd784ddaa3161;hpb=6d9c411afd0301f0262ff63d6dc59dac38f58e63;p=deliverable%2Fbinutils-gdb.git diff --git a/gprof/call_graph.c b/gprof/call_graph.c index 20977f989f..1ccf94994f 100644 --- a/gprof/call_graph.c +++ b/gprof/call_graph.c @@ -1,12 +1,12 @@ /* call_graph.c - Create call graphs. - Copyright 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1999-2020 Free Software Foundation, Inc. This file is part of GNU Binutils. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -16,8 +16,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 "gprof.h" #include "search_list.h" @@ -30,9 +30,8 @@ #include "gmon_out.h" #include "sym_ids.h" -extern void -DEFUN (cg_tally, (from_pc, self_pc, count), - bfd_vma from_pc AND bfd_vma self_pc AND unsigned long count) +void +cg_tally (bfd_vma from_pc, bfd_vma self_pc, unsigned long count) { Sym *parent; Sym *child; @@ -78,7 +77,7 @@ DEFUN (cg_tally, (from_pc, self_pc, count), for formatting error-messages only. */ void -DEFUN (cg_read_rec, (ifp, filename), FILE * ifp AND CONST char *filename) +cg_read_rec (FILE *ifp, const char *filename) { bfd_vma from_pc, self_pc; unsigned int count; @@ -105,7 +104,7 @@ DEFUN (cg_read_rec, (ifp, filename), FILE * ifp AND CONST char *filename) only. */ void -DEFUN (cg_write_arcs, (ofp, filename), FILE * ofp AND const char *filename) +cg_write_arcs (FILE *ofp, const char *filename) { Arc *arc; Sym *sym;