This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

More prototypes for binutils/*



With this patch (and the previous three) I've cut down the total
number of warnings from 3400 to 3148 - still a long way to go (note
that I build shared and static libs and therefore some files get
compiled twice).

I configured on i686-linux with:
--enable-shared --disable-nls
--enable-build-warnings --enable-targets=all --enable-64-bit-bfd

Ok to commit?  

That's the last patch for today,
Andreas

2001-08-21  Andreas Jaeger  <aj@suse.de>

	* coffgrok.c: Add missing prototypes, include libiberty.h instead
	of declaring xcalloc.

	* unwind-ia64.c: Add missing prototypes.
	* coffdump.c: Likewise.

============================================================
Index: binutils/coffgrok.c
--- binutils/coffgrok.c	2001/03/13 06:43:57	1.3
+++ binutils/coffgrok.c	2001/08/21 09:11:45
@@ -1,5 +1,5 @@
 /* coffgrok.c
-   Copyright 1994, 1995, 1997, 1998, 2000 Free Software Foundation, Inc.
+   Copyright 1994, 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
 
 This file is part of GNU Binutils.
 
@@ -26,6 +26,7 @@
 */
 
 #include <bfd.h>
+#include <libiberty.h>
 #include "bucomm.h"
 
 #include "coff/internal.h"
@@ -53,7 +54,7 @@
 static struct coff_ptr_struct *rawsyms;
 static int rawcount;
 static bfd *abfd;
-extern char *xcalloc ();
+
 #define PTR_SIZE 	4
 #define SHORT_SIZE 	2
 #define INT_SIZE 	4
@@ -62,6 +63,19 @@
 #define DOUBLE_SIZE 	8
 
 #define INDEXOF(p)  ((struct coff_ptr_struct *)(p)-(rawsyms))
+
+static struct coff_scope *empty_scope PARAMS ((void));
+static struct coff_symbol *empty_symbol PARAMS ((void));
+static void push_scope PARAMS ((int));
+static void pop_scope PARAMS ((void));
+static void do_sections_p1 PARAMS ((struct coff_ofile *));
+static void do_sections_p2 PARAMS ((struct coff_ofile *));
+static struct coff_where *do_where PARAMS ((int));
+static struct coff_line *do_lines PARAMS ((int, char *));
+static struct coff_type *do_type PARAMS ((int));
+static struct coff_visible *do_visible PARAMS ((int));
+static int do_define PARAMS ((int, struct coff_scope *));
+static struct coff_ofile *doit PARAMS ((void));
 
 static struct coff_scope *
 empty_scope ()
============================================================
Index: binutils/unwind-ia64.c
--- binutils/unwind-ia64.c	2001/06/23 16:06:51	1.4
+++ binutils/unwind-ia64.c	2001/08/21 09:11:46
@@ -33,6 +33,12 @@
 
 static bfd_vma unw_rlen = 0;
 
+static void unw_print_brmask PARAMS ((char *, unsigned char));
+static void unw_print_grmask PARAMS ((char *, unsigned char));
+static void unw_print_frmask PARAMS ((char *, long unsigned int));
+static void unw_print_abreg PARAMS ((char *, unsigned char));
+static void unw_print_xyreg PARAMS ((char *, unsigned char, unsigned char));
+
 static void
 unw_print_brmask (cp, mask)
      char * cp;
============================================================
Index: binutils/coffdump.c
--- binutils/coffdump.c	2001/03/13 06:43:57	1.3
+++ binutils/coffdump.c	2001/08/21 09:11:46
@@ -1,5 +1,5 @@
 /* Coff file dumper.
-   Copyright 1994, 1995, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1994, 1995, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 This file is part of GNU Binutils.
 
@@ -33,7 +33,21 @@
 #define PROGRAM_VERSION "1.0"
 
 static int atnl;
-static void dump_coff_scope ();
+
+static void tab PARAMS ((int));
+static void nl PARAMS ((void));
+static void dump_coff_lines PARAMS ((struct coff_line *));
+static void dump_coff_type PARAMS ((struct coff_type *));
+static void dump_coff_where PARAMS ((struct coff_where *));
+static void dump_coff_visible PARAMS ((struct coff_visible *));
+extern void dump_coff_symbol PARAMS ((struct coff_symbol *));
+static void dump_coff_scope PARAMS ((struct coff_scope *));
+static void dump_coff_sfile PARAMS ((struct coff_sfile *));
+static void dump_coff_section PARAMS ((struct coff_section *));
+extern void coff_dump PARAMS ((struct coff_ofile *));
+static void show_usage PARAMS ((FILE *, int));
+static void show_help PARAMS ((void));
+extern int main PARAMS ((int, char **));
 
 static void
 tab (x)

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]