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]
Other format: [Raw text]

[patch] bfd/*: Remove ARGSUSED and VARARGS.


Hi,

Committed as preapproved by Nick a few years ago through personal
communication.

Kazu Hirata

2003-12-01  Kazu Hirata  <kazu@cs.umass.edu>

	* coff-rs6000.c: Remove ARGSUSED and VARARGS.
	* coff64-rs6000.c: Likewise.
	* coffcode.h: Likewise.
	* elf32-vax.c: Likewise.
	* hash.c: Likewise.
	* hppabsd-core.c: Likewise.
	* hpux-core.c: Likewise.
	* ihex.c: Likewise.
	* netbsd-core.c: Likewise.
	* osf-core.c: Likewise.
	* pdp11.c: Likewise.
	* ptrace-core.c: Likewise.
	* sco5-core.c: Likewise.
	* section.c: Likewise.
	* sunos.c: Likewise.
	* trad-core.c: Likewise.

Index: coff-rs6000.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-rs6000.c,v
retrieving revision 1.56
diff -u -r1.56 coff-rs6000.c
--- coff-rs6000.c	24 Nov 2003 18:06:40 -0000	1.56
+++ coff-rs6000.c	1 Dec 2003 06:23:29 -0000
@@ -1575,7 +1575,6 @@
 
 /* Write out an XCOFF armap.  */
 
-/*ARGSUSED*/
 static bfd_boolean
 xcoff_write_armap_old (abfd, elength, map, orl_count, stridx)
      bfd *abfd;
Index: coff64-rs6000.c
===================================================================
RCS file: /cvs/src/src/bfd/coff64-rs6000.c,v
retrieving revision 1.47
diff -u -r1.47 coff64-rs6000.c
--- coff64-rs6000.c	24 Nov 2003 18:06:40 -0000	1.47
+++ coff64-rs6000.c	1 Dec 2003 06:23:30 -0000
@@ -2054,7 +2054,6 @@
 /* We can't use the usual coff_sizeof_headers routine, because AIX
    always uses an a.out header.  */
 
-/*ARGSUSED*/
 static int
 xcoff64_sizeof_headers (abfd, reloc)
      bfd *abfd;
Index: coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.98
diff -u -r1.98 coffcode.h
--- coffcode.h	24 Nov 2003 18:06:40 -0000	1.98
+++ coffcode.h	1 Dec 2003 06:23:32 -0000
@@ -5122,7 +5122,6 @@
 	   struct coff_link_hash_entry *, struct internal_syment *,
 	   bfd_vma *));
 
-/*ARGSUSED*/
 static reloc_howto_type *
 coff_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
      bfd *abfd ATTRIBUTE_UNUSED;
Index: elf32-vax.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-vax.c,v
retrieving revision 1.16
diff -u -r1.16 elf32-vax.c
--- elf32-vax.c	11 Nov 2003 13:32:37 -0000	1.16
+++ elf32-vax.c	1 Dec 2003 06:23:33 -0000
@@ -1338,7 +1338,6 @@
    in regular objects.  We allocated space for them in the check_relocs
    routine, but we won't fill them in in the relocate_section routine.  */
 
-/*ARGSUSED*/
 static bfd_boolean
 elf_vax_discard_copies (h, ignore)
      struct elf_vax_link_hash_entry *h;
@@ -1366,7 +1365,6 @@
    creating a shared object or executable, space in the .got and .rela.got
    will be reserved for the symbol.  */
 
-/*ARGSUSED*/
 static bfd_boolean
 elf_vax_instantiate_got_entries (h, infoptr)
      struct elf_link_hash_entry *h;
Index: hash.c
===================================================================
RCS file: /cvs/src/src/bfd/hash.c,v
retrieving revision 1.10
diff -u -r1.10 hash.c
--- hash.c	4 Nov 2003 11:30:54 -0000	1.10
+++ hash.c	1 Dec 2003 06:23:33 -0000
@@ -446,7 +446,6 @@
 
 /* Base method for creating a new hash table entry.  */
 
-/*ARGSUSED*/
 struct bfd_hash_entry *
 bfd_hash_newfunc (entry, table, string)
      struct bfd_hash_entry *entry;
Index: hppabsd-core.c
===================================================================
RCS file: /cvs/src/src/bfd/hppabsd-core.c,v
retrieving revision 1.8
diff -u -r1.8 hppabsd-core.c
--- hppabsd-core.c	30 Nov 2002 08:39:39 -0000	1.8
+++ hppabsd-core.c	1 Dec 2003 06:23:33 -0000
@@ -213,7 +213,6 @@
   return core_command (abfd);
 }
 
-/* ARGSUSED */
 static int
 hppabsd_core_core_file_failing_signal (abfd)
      bfd *abfd;
@@ -221,7 +220,6 @@
   return core_signal (abfd);
 }
 
-/* ARGSUSED */
 static bfd_boolean
 hppabsd_core_core_file_matches_executable_p (core_bfd, exec_bfd)
      bfd *core_bfd, *exec_bfd;
Index: hpux-core.c
===================================================================
RCS file: /cvs/src/src/bfd/hpux-core.c,v
retrieving revision 1.8
diff -u -r1.8 hpux-core.c
--- hpux-core.c	30 Nov 2002 08:39:39 -0000	1.8
+++ hpux-core.c	1 Dec 2003 06:23:34 -0000
@@ -327,7 +327,6 @@
   return core_command (abfd);
 }
 
-/* ARGSUSED */
 static int
 hpux_core_core_file_failing_signal (abfd)
      bfd *abfd;
@@ -335,7 +334,6 @@
   return core_signal (abfd);
 }
 
-/* ARGSUSED */
 static bfd_boolean
 hpux_core_core_file_matches_executable_p (core_bfd, exec_bfd)
      bfd *core_bfd ATTRIBUTE_UNUSED;
Index: ihex.c
===================================================================
RCS file: /cvs/src/src/bfd/ihex.c,v
retrieving revision 1.20
diff -u -r1.20 ihex.c
--- ihex.c	4 Nov 2003 10:41:51 -0000	1.20
+++ ihex.c	1 Dec 2003 06:23:34 -0000
@@ -948,7 +948,6 @@
 
 /* Get the size of the headers, for the linker.  */
 
-/*ARGSUSED*/
 static int
 ihex_sizeof_headers (abfd, exec)
      bfd *abfd ATTRIBUTE_UNUSED;
Index: netbsd-core.c
===================================================================
RCS file: /cvs/src/src/bfd/netbsd-core.c,v
retrieving revision 1.7
diff -u -r1.7 netbsd-core.c
--- netbsd-core.c	30 Nov 2002 08:39:40 -0000	1.7
+++ netbsd-core.c	1 Dec 2003 06:23:34 -0000
@@ -53,7 +53,6 @@
 
 /* Handle NetBSD-style core dump file.  */
 
-/* ARGSUSED */
 static const bfd_target *
 netbsd_core_file_p (abfd)
      bfd *abfd;
@@ -179,7 +178,6 @@
   return abfd->tdata.netbsd_core_data->core.c_name;
 }
 
-/* ARGSUSED */
 static int
 netbsd_core_file_failing_signal (abfd)
 	bfd *abfd;
@@ -188,7 +186,6 @@
   return abfd->tdata.netbsd_core_data->core.c_signo;
 }
 
-/* ARGSUSED */
 static bfd_boolean
 netbsd_core_file_matches_executable_p  (core_bfd, exec_bfd)
      bfd *core_bfd ATTRIBUTE_UNUSED;
Index: osf-core.c
===================================================================
RCS file: /cvs/src/src/bfd/osf-core.c,v
retrieving revision 1.8
diff -u -r1.8 osf-core.c
--- osf-core.c	30 Nov 2002 08:39:40 -0000	1.8
+++ osf-core.c	1 Dec 2003 06:23:34 -0000
@@ -164,7 +164,6 @@
   return core_command (abfd);
 }
 
-/* ARGSUSED */
 static int
 osf_core_core_file_failing_signal (abfd)
      bfd *abfd;
@@ -172,7 +171,6 @@
   return core_signal (abfd);
 }
 
-/* ARGSUSED */
 static bfd_boolean
 osf_core_core_file_matches_executable_p (core_bfd, exec_bfd)
      bfd *core_bfd ATTRIBUTE_UNUSED;
Index: pdp11.c
===================================================================
RCS file: /cvs/src/src/bfd/pdp11.c,v
retrieving revision 1.19
diff -u -r1.19 pdp11.c
--- pdp11.c	4 Nov 2003 10:41:52 -0000	1.19
+++ pdp11.c	1 Dec 2003 06:23:36 -0000
@@ -2469,7 +2469,6 @@
     }
 }
 
-/*ARGSUSED*/
 void
 NAME(aout,print_symbol) (abfd, afile, symbol, how)
      bfd * abfd;
Index: ptrace-core.c
===================================================================
RCS file: /cvs/src/src/bfd/ptrace-core.c,v
retrieving revision 1.7
diff -u -r1.7 ptrace-core.c
--- ptrace-core.c	30 Nov 2002 08:39:40 -0000	1.7
+++ ptrace-core.c	1 Dec 2003 06:23:36 -0000
@@ -55,7 +55,6 @@
   PARAMS ((bfd *core_bfd, bfd *exec_bfd));
 static void swap_abort PARAMS ((void));
 
-/* ARGSUSED */
 const bfd_target *
 ptrace_unix_core_file_p (abfd)
      bfd *abfd;
@@ -146,7 +145,6 @@
     return 0;
 }
 
-/* ARGSUSED */
 int
 ptrace_unix_core_file_failing_signal (abfd)
      bfd *abfd;
@@ -154,7 +152,6 @@
   return abfd->tdata.trad_core_data->u.pt_sigframe.sig_num;
 }
 
-/* ARGSUSED */
 bfd_boolean
 ptrace_unix_core_file_matches_executable_p  (core_bfd, exec_bfd)
      bfd *core_bfd, *exec_bfd;
Index: sco5-core.c
===================================================================
RCS file: /cvs/src/src/bfd/sco5-core.c,v
retrieving revision 1.8
diff -u -r1.8 sco5-core.c
--- sco5-core.c	30 Nov 2002 08:39:40 -0000	1.8
+++ sco5-core.c	1 Dec 2003 06:23:37 -0000
@@ -110,7 +110,6 @@
   return &rawptr->u;
 }
 
-/* ARGSUSED */
 const bfd_target *
 sco5_core_file_p (abfd)
      bfd *abfd;
@@ -338,7 +337,6 @@
     return NULL;
 }
 
-/* ARGSUSED */
 int
 sco5_core_file_failing_signal (ignore_abfd)
      bfd *ignore_abfd;
@@ -348,7 +346,6 @@
 	  : -1);
 }
 
-/* ARGSUSED */
 bfd_boolean
 sco5_core_file_matches_executable_p  (core_bfd, exec_bfd)
      bfd *core_bfd ATTRIBUTE_UNUSED;
Index: section.c
===================================================================
RCS file: /cvs/src/src/bfd/section.c,v
retrieving revision 1.66
diff -u -r1.66 section.c
--- section.c	30 Nov 2003 18:40:41 -0000	1.66
+++ section.c	1 Dec 2003 06:23:37 -0000
@@ -1025,7 +1025,6 @@
 
 */
 
-/*ARGSUSED*/
 bfd_boolean
 bfd_set_section_flags (bfd *abfd ATTRIBUTE_UNUSED,
 		       sec_ptr section,
@@ -1074,7 +1073,6 @@
 
 */
 
-/*VARARGS2*/
 void
 bfd_map_over_sections (bfd *abfd,
 		       void (*operation) (bfd *, asection *, void *),
Index: sunos.c
===================================================================
RCS file: /cvs/src/src/bfd/sunos.c,v
retrieving revision 1.12
diff -u -r1.12 sunos.c
--- sunos.c	25 Jun 2003 06:40:18 -0000	1.12
+++ sunos.c	1 Dec 2003 06:23:38 -0000
@@ -1246,7 +1246,6 @@
 
 /* Return the list of objects needed by BFD.  */
 
-/*ARGSUSED*/
 struct bfd_link_needed_list *
 bfd_sunos_get_needed_list (abfd, info)
      bfd *abfd ATTRIBUTE_UNUSED;
@@ -2165,7 +2164,6 @@
    this point.  This entry point exists to prevent the regular linker
    code from doing anything with the object.  */
 
-/*ARGSUSED*/
 static bfd_boolean
 sunos_link_dynamic_object (info, abfd)
      struct bfd_link_info *info ATTRIBUTE_UNUSED;
@@ -2410,7 +2408,6 @@
    copy it over, and tell the caller to not bother processing this
    reloc.  */
 
-/*ARGSUSED*/
 static bfd_boolean
 sunos_check_dynamic_reloc (info, input_bfd, input_section, harg, reloc,
 			   contents, skip, relocationp)
Index: trad-core.c
===================================================================
RCS file: /cvs/src/src/bfd/trad-core.c,v
retrieving revision 1.13
diff -u -r1.13 trad-core.c
--- trad-core.c	30 Nov 2002 08:39:40 -0000	1.13
+++ trad-core.c	1 Dec 2003 06:23:38 -0000
@@ -71,7 +71,6 @@
 
 /* Handle 4.2-style (and perhaps also sysV-style) core dump file.  */
 
-/* ARGSUSED */
 const bfd_target *
 trad_unix_core_file_p (abfd)
      bfd *abfd;
@@ -248,7 +247,6 @@
     return 0;
 }
 
-/* ARGSUSED */
 int
 trad_unix_core_file_failing_signal (ignore_abfd)
      bfd *ignore_abfd ATTRIBUTE_UNUSED;
@@ -260,7 +258,6 @@
 #endif
 }
 
-/* ARGSUSED */
 bfd_boolean
 trad_unix_core_file_matches_executable_p  (core_bfd, exec_bfd)
      bfd *core_bfd ATTRIBUTE_UNUSED;


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