From 5789ecea4c53e1fa61db1211f4e3f132bbd57788 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 9 Aug 2001 14:57:42 +0000 Subject: [PATCH 1/1] * alpha.c: Add missing prototypes. * sparc.c: Likewise. * tahoe.c: Likewise. * vax.c: Likewise. * i386.c: Likewise. (i386_iscall): Don't use DEFUN. --- gprof/ChangeLog | 9 +++++++++ gprof/alpha.c | 1 + gprof/i386.c | 5 ++++- gprof/sparc.c | 2 ++ gprof/tahoe.c | 5 +++++ gprof/vax.c | 6 ++++++ 6 files changed, 27 insertions(+), 1 deletion(-) diff --git a/gprof/ChangeLog b/gprof/ChangeLog index df9019b8f3..72ab53e170 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,12 @@ +2001-08-09 Alan Modra + + * alpha.c: Add missing prototypes. + * sparc.c: Likewise. + * tahoe.c: Likewise. + * vax.c: Likewise. + * i386.c: Likewise. + (i386_iscall): Don't use DEFUN. + 2001-07-19 Nick Clifton * NOTES: Rename to README for consistency with other binutils. diff --git a/gprof/alpha.c b/gprof/alpha.c index 8aad74d1f9..edf244b0c5 100644 --- a/gprof/alpha.c +++ b/gprof/alpha.c @@ -62,6 +62,7 @@ alpha_Instruction; static Sym indirect_child; +void alpha_find_call PARAMS ((Sym *, bfd_vma, bfd_vma)); /* * On the Alpha we can only detect PC relative calls, which are diff --git a/gprof/i386.c b/gprof/i386.c index 338a443d99..8836dc3e99 100644 --- a/gprof/i386.c +++ b/gprof/i386.c @@ -22,9 +22,12 @@ #include "hist.h" #include "symtab.h" +int i386_iscall PARAMS ((unsigned char *)); +void i386_find_call PARAMS ((Sym *, bfd_vma, bfd_vma)); int -DEFUN (i386_iscall, (ip), unsigned char *ip) +i386_iscall (ip) + unsigned char *ip; { if (*ip == 0xe8) return 1; diff --git a/gprof/sparc.c b/gprof/sparc.c index 0365827639..9ffdeb092b 100644 --- a/gprof/sparc.c +++ b/gprof/sparc.c @@ -27,6 +27,8 @@ */ #define CALL (0xc0000000) +void sparc_find_call PARAMS ((Sym *, bfd_vma, bfd_vma)); + void sparc_find_call (parent, p_lowpc, p_highpc) Sym *parent; diff --git a/gprof/tahoe.c b/gprof/tahoe.c index 750c7adc48..f9f72c0ad5 100644 --- a/gprof/tahoe.c +++ b/gprof/tahoe.c @@ -46,6 +46,11 @@ typedef enum tahoe_opermodes tahoe_operandenum; */ Sym indirectchild; +tahoe_operandenum tahoe_operandmode PARAMS ((unsigned char *)); +char *tahoe_operandname PARAMS ((tahoe_operandenum)); +long tahoe_operandlength PARAMS ((unsigned char *)); +bfd_vma tahoe_reladdr PARAMS ((char *)); +void tahoe_find_call PARAMS ((Sym *, bfd_vma, bfd_vma)); tahoe_operandenum tahoe_operandmode (modep) diff --git a/gprof/vax.c b/gprof/vax.c index 0d7cc30b69..9d67430c4b 100644 --- a/gprof/vax.c +++ b/gprof/vax.c @@ -53,6 +53,12 @@ struct modebyte Sym indirectchild; +static operandenum vax_operandmode PARAMS ((struct modebyte *)); +static char *vax_operandname PARAMS ((operandenum)); +static long vax_operandlength PARAMS ((struct modebyte *)); +static bfd_vma vax_reladdr PARAMS ((struct modebyte *)); +void vax_find_call PARAMS ((Sym *, bfd_vma, bfd_vma)); + static operandenum vax_operandmode (modep) struct modebyte *modep; -- 2.34.1