[patch] DEFUN removal and comment typo fixes

Kazu Hirata kazu@hxi.com
Sat Jun 24 14:04:00 GMT 2000


Hi,

Attached is a patch for DEFUN removal and comment typo fixes. With the
patch applied, there will be no DEFUN under gas.

Thanks,

Kazu Hirata

===File ~/gnu/binutils/ChangeLog-kazu=======================
2000-06-24  Kazu Hirata  <kazu@hxi.com>

	* config/obj-aout.c: Remove all uses of DEFUN.
	* config/obj-ieee.c: Likewise.
	* config/tc-sh.c: Fix comment typos.
	* config/tc-tahoe.c: Likewise.
	* config/tc-vax.c: Likewise.
	* config/tc-w65.c: Likewise.
	* config/tc-z8k.c: Likewise.

============================================================

===File ~/gnu/binutils/kazu.patch===========================
Index: bfd/ChangeLog
===================================================================
RCS file: /cvs/src/src/bfd/ChangeLog,v
retrieving revision 1.483
diff -u -r1.483 ChangeLog
--- ChangeLog	2000/06/24 20:10:24	1.483
+++ ChangeLog	2000/06/24 20:31:21
@@ -1768,7 +1768,7 @@
 
 	* coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
 	3 to 2.  This allows 4 byte sized sections, which is necessary for
-	dlltool to build funcitoning DLLs.
+	dlltool to build functioning DLLs.
 
 2000-01-10  Philip Blundell  <pb@futuretv.com>
 
Index: binutils/ChangeLog
===================================================================
RCS file: /cvs/src/src/binutils/ChangeLog,v
retrieving revision 1.169
diff -u -r1.169 ChangeLog
--- ChangeLog	2000/06/24 19:53:12	1.169
+++ ChangeLog	2000/06/24 20:31:32
@@ -593,7 +593,7 @@
 	rel type undetermined.
 	(get_machine_name): Add new machine codes.
 	(get_section_type_name): Add new section types.
-	(get_elf_section_flags): New funciton: Decode section flags.
+	(get_elf_section_flags): New function: Decode section flags.
 	(process_section_headers): Call get_elf_section_flags() in
 	order to decode flags in section header.
 	(get_dynamic_flags): New function: Decode dynamic section
Index: gas/config/obj-aout.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-aout.c,v
retrieving revision 1.6
diff -u -r1.6 obj-aout.c
--- obj-aout.c	2000/05/22 21:19:43	1.6
+++ obj-aout.c	2000/06/24 20:31:34
@@ -578,7 +578,7 @@
 }
 
 void
-DEFUN_VOID (s_sect)
+s_sect ()
 {
   /* Strip out the section name */
   char *section_name;
Index: gas/config/obj-ieee.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-ieee.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 obj-ieee.c
--- obj-ieee.c	1999/05/03 07:28:42	1.1.1.1
+++ obj-ieee.c	2000/06/24 20:31:34
@@ -55,9 +55,9 @@
 /* calculate the size of the frag chain and create a bfd section
    to contain all of it */
 static void
-DEFUN (size_section, (abfd, idx),
-       bfd * abfd AND
-       unsigned int idx)
+size_section (abfd, idx)
+     bfd *abfd;
+     unsigned int idx;
 {
   asection *sec;
   unsigned int size = 0;
@@ -106,9 +106,9 @@
 
 /* run through a frag chain and write out the data to go with it */
 static void
-DEFUN (fill_section, (abfd, idx),
-       bfd * abfd AND
-       unsigned int idx)
+fill_section (abfd, idx)
+     bfd *abfd;
+     unsigned int idx;
 {
   asection *sec = segment_info[idx].user_stuff;
   if (sec)
@@ -159,8 +159,8 @@
 /* Count the relocations in a chain */
 
 static unsigned int
-DEFUN (count_entries_in_chain, (idx),
-       unsigned int idx)
+count_entries_in_chain (idx)
+     unsigned int idx;
 {
   unsigned int nrelocs;
   fixS *fixup_ptr;
@@ -178,8 +178,8 @@
 
 /* output all the relocations for a section */
 void
-DEFUN (do_relocs_for, (idx),
-       unsigned int idx)
+do_relocs_for (idx)
+     unsigned int idx;
 {
   unsigned int nrelocs;
   arelent **reloc_ptr_vector;
@@ -270,8 +270,8 @@
 
 /* do the symbols.. */
 static void
-DEFUN (do_symbols, (abfd),
-       bfd * abfd)
+do_symbols (abfd)
+     bfd *abfd;
 {
   extern symbolS *symbol_rootP;
   symbolS *ptr;
@@ -333,7 +333,7 @@
    code */
 
 void
-DEFUN_VOID (bfd_as_write_hook)
+bfd_as_write_hook ()
 {
   int i;
 
@@ -509,7 +509,7 @@
 
 #if 1
 extern void
-DEFUN_VOID (write_object_file)
+write_object_file ()
 {
   int i;
   struct frchain *frchain_ptr;
Index: gas/config/tc-sh.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sh.c,v
retrieving revision 1.15
diff -u -r1.15 tc-sh.c
--- tc-sh.c	2000/06/24 11:51:53	1.15
+++ tc-sh.c	2000/06/24 20:31:37
@@ -1285,8 +1285,8 @@
   return frag_more (2);
 }
 
-/* Now we know what sort of opcodes it is, lets build the bytes -
- */
+/* Now we know what sort of opcodes it is, let's build the bytes.  */
+
 static void
 build_Mytes (opcode, operand)
      sh_opcode_info *opcode;
Index: gas/config/tc-tahoe.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-tahoe.c,v
retrieving revision 1.2
diff -u -r1.2 tc-tahoe.c
--- tc-tahoe.c	1999/06/03 00:29:45	1.2
+++ tc-tahoe.c	2000/06/24 20:31:39
@@ -1224,7 +1224,8 @@
 
   if (*op_bad == '\0')
     {
-      /* statement has no syntax goofs yet: lets sniff the expression */
+      /* Statement has no syntax goofs yet: let's sniff the
+         expression.  */
       input_line_pointer = point;
       expP = &(topP->exp_of_operand);
       topP->seg_of_operand = expression (expP);
@@ -1526,7 +1527,7 @@
       else
 	{
 	  /*
-       * We found a match! So lets pick up as many operands as the
+       * We found a match! So let's pick up as many operands as the
        * instruction wants, and even gripe if there are too many.
        * We expect comma to seperate each operand.
        * We let instring track the text, while p tracks a part of the
Index: gas/config/tc-vax.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-vax.c,v
retrieving revision 1.3
diff -u -r1.3 tc-vax.c
--- tc-vax.c	2000/06/09 00:00:04	1.3
+++ tc-vax.c	2000/06/24 20:31:42
@@ -389,7 +389,8 @@
 	}
       else
 	{
-	  /* statement has no syntax goofs: lets sniff the expression */
+	  /* Statement has no syntax goofs: let's sniff the
+             expression.  */
 	  int can_be_short = 0;	/* 1 if a bignum can be reduced to a short literal. */
 
 	  input_line_pointer = operandP->vop_expr_begin;
@@ -1795,7 +1796,7 @@
       else
 	{
 	  /*
-	   * We found a match! So lets pick up as many operands as the
+	   * We found a match! So let's pick up as many operands as the
 	   * instruction wants, and even gripe if there are too many.
 	   * We expect comma to seperate each operand.
 	   * We let instring track the text, while p tracks a part of the
Index: gas/config/tc-w65.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-w65.c,v
retrieving revision 1.3
diff -u -r1.3 tc-w65.c
--- tc-w65.c	2000/06/24 11:51:53	1.3
+++ tc-w65.c	2000/06/24 20:31:43
@@ -644,8 +644,8 @@
 static int log2[] =
 {0, 0, 1, 0, 2};
 
-/* Now we know what sort of opcodes it is, lets build the bytes -
- */
+/* Now we know what sort of opcodes it is, let's build the bytes.  */
+
 static void
 build_Mytes (opcode)
      struct opinfo *opcode;
Index: gas/config/tc-z8k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-z8k.c,v
retrieving revision 1.4
diff -u -r1.4 tc-z8k.c
--- tc-z8k.c	2000/06/24 11:51:53	1.4
+++ tc-z8k.c	2000/06/24 20:31:44
@@ -1002,8 +1002,8 @@
 
 }
 
-/* Now we know what sort of opcodes it is, lets build the bytes -
- */
+/* Now we know what sort of opcodes it is, let's build the bytes.  */
+
 #define INSERT(x,y) *x++ = y>>24; *x++ = y>> 16; *x++=y>>8; *x++ =y;
 static void
 build_bytes (this_try, operand)
@@ -1185,7 +1185,7 @@
 }
 
 /* This is the guts of the machine-dependent assembler.  STR points to a
-   machine dependent instruction.  This funciton is supposed to emit
+   machine dependent instruction.  This function is supposed to emit
    the frags/bytes it assembles to.
    */
 
============================================================



More information about the Binutils mailing list