This is the mail archive of the binutils@sourceware.org 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] gas/config/*.[ch]: Fix comment typos.


Hi,

Committed as obvious.

Kazu Hirata

2006-04-23  Kazu Hirata  <kazu@codesourcery.com>

	* config/obj-coff.c, config/tc-arm.c, config/tc-bfin.c,
	config/tc-cris.c, config/tc-crx.c, config/tc-i386.c,
	config/tc-ia64.c, config/tc-maxq.c, config/tc-maxq.h,
	config/tc-mips.c, config/tc-msp430.c, config/tc-sh.c,
	config/tc-tic4x.c, config/tc-xtensa.c: Fix comment typos.

Index: gas/config/obj-coff.c
===================================================================
--- gas/config/obj-coff.c	7 Nov 2005 17:57:00 -0000	1.90
+++ gas/config/obj-coff.c	23 Apr 2006 22:06:52 -0000
@@ -1026,7 +1026,7 @@
 }
 
 /* Return the name of the weak symbol corresponding to an
-   alterate symbol.  */
+   alternate symbol.  */
 
 static const char *
 weak_altname2name (const char * name)
@@ -1579,7 +1579,7 @@
 		  if (! load_removed)
 		    flags |= SEC_LOAD;
 		  /* Note - the READONLY flag is set here, even for the 'x'
-		     attrbiute in order to be compatible with the MSVC
+		     attribute in order to be compatible with the MSVC
 		     linker.  */
 		  if (! readonly_removed)
 		    flags |= SEC_READONLY;
Index: gas/config/tc-arm.c
===================================================================
--- gas/config/tc-arm.c	20 Apr 2006 12:39:51 -0000	1.257
+++ gas/config/tc-arm.c	23 Apr 2006 22:06:52 -0000
@@ -2502,7 +2502,7 @@
 
   demand_empty_rest_of_line ();
 
-  /* Generate any deferred opcodes becuuse we're going to be looking at
+  /* Generate any deferred opcodes because we're going to be looking at
      the list.	*/
   flush_pending_unwind ();
 
@@ -2635,7 +2635,7 @@
 
   demand_empty_rest_of_line ();
 
-  /* Generate any deferred opcodes becuuse we're going to be looking at
+  /* Generate any deferred opcodes because we're going to be looking at
      the list.	*/
   flush_pending_unwind ();
 
@@ -2818,7 +2818,7 @@
 s_arm_unwind_raw (int ignored ATTRIBUTE_UNUSED)
 {
   expressionS exp;
-  /* This is an arbitary limit.	 */
+  /* This is an arbitrary limit.	 */
   unsigned char op[16];
   int count;
 
@@ -4570,7 +4570,7 @@
 do_rd_rm_rn (void)
 {
   unsigned Rn = inst.operands[2].reg;
-  /* Enforce resutrictions on SWP instruction.  */
+  /* Enforce restrictions on SWP instruction.  */
   if ((inst.instruction & 0x0fbfffff) == 0x01000090)
     constraint (Rn == inst.operands[0].reg || Rn == inst.operands[1].reg,
 		_("Rn must not overlap other operands"));
@@ -8432,7 +8432,7 @@
       ARM_MERGE_FEATURE_SETS (thumb_arch_used, thumb_arch_used,
 			      *opcode->tvariant);
       /* Many Thumb-2 instructions also have Thumb-1 variants, so explicitly
-	 set those bits when Thumb-2 32-bit instuctions are seen.  ie.
+	 set those bits when Thumb-2 32-bit instructions are seen.  ie.
 	 anything other than bl/blx.
 	 This is overly pessimistic for relaxable instructions.  */
       if ((inst.size == 4 && (inst.instruction & 0xf800e800) != 0xf000e800)
@@ -10894,7 +10894,7 @@
 
   if (unwind.fp_used)
     {
-      /* Adjust sp as neccessary.  */
+      /* Adjust sp as necessary.  */
       unwind.pending_offset += unwind.fp_offset - unwind.frame_size;
       flush_pending_unwind ();
 
Index: gas/config/tc-bfin.c
===================================================================
--- gas/config/tc-bfin.c	26 Mar 2006 01:12:07 -0000	1.5
+++ gas/config/tc-bfin.c	23 Apr 2006 22:06:52 -0000
@@ -1054,7 +1054,7 @@
 	}
       switch (parent_reloc)
 	{
-	  /*  Some reloctions will need to allocate extra words.  */
+	  /*  Some relocations will need to allocate extra words.  */
 	case BFD_RELOC_BFIN_16_IMM:
 	case BFD_RELOC_BFIN_16_LOW:
 	case BFD_RELOC_BFIN_16_HIGH:
Index: gas/config/tc-cris.c
===================================================================
--- gas/config/tc-cris.c	7 Dec 2005 06:41:56 -0000	1.36
+++ gas/config/tc-cris.c	23 Apr 2006 22:06:53 -0000
@@ -991,7 +991,7 @@
       break;
 
     case ENCODE_RELAX (STATE_MUL, STATE_BYTE):
-      /* This is the only time we check position and aligmnent of the
+      /* This is the only time we check position and alignment of the
 	 placement-tracking frag.  */
       if (sec->alignment_power < 2)
 	as_bad_where (fragP->fr_file, fragP->fr_line,
Index: gas/config/tc-crx.c
===================================================================
--- gas/config/tc-crx.c	10 Feb 2006 12:21:43 -0000	1.17
+++ gas/config/tc-crx.c	23 Apr 2006 22:06:53 -0000
@@ -1271,7 +1271,7 @@
       /* When instruction size is 3 and 'shift' is 16, a 16-bit constant is 
 	 always filling the upper part of output_opcode[1]. If we mistakenly 
 	 write it to output_opcode[0], the constant prefix (that is, 'match')
-	 will be overriden.
+	 will be overridden.
 		 0	   1	     2	       3
 	    +---------+---------+---------+---------+
 	    | 'match' |         | X X X X |	    |
Index: gas/config/tc-i386.c
===================================================================
--- gas/config/tc-i386.c	18 Apr 2006 17:52:37 -0000	1.211
+++ gas/config/tc-i386.c	23 Apr 2006 22:06:54 -0000
@@ -2310,7 +2310,7 @@
 	  if (!MATCH (overlap0, i.types[0], t->operand_types[0])
 	      || !MATCH (overlap1, i.types[1], t->operand_types[1])
 	      /* monitor in SSE3 is a very special case.  The first
-		 register and the second register may have differnet
+		 register and the second register may have different
 		 sizes.  */
 	      || !((t->base_opcode == 0x0f01
 		    && t->extension_opcode == 0xc8)
Index: gas/config/tc-ia64.c
===================================================================
--- gas/config/tc-ia64.c	3 Mar 2006 01:10:42 -0000	1.187
+++ gas/config/tc-ia64.c	23 Apr 2006 22:06:55 -0000
@@ -11862,7 +11862,7 @@
 {
   char *file;		/* The file where the directive is seen.  */
   unsigned int line;	/* The line number the directive is at.  */
-  const char *name;	/* The orignale name of the symbol.  */
+  const char *name;	/* The original name of the symbol.  */
 };
 
 /* Called for .alias and .secalias directives. If SECTION is 1, it is
Index: gas/config/tc-maxq.c
===================================================================
--- gas/config/tc-maxq.c	11 Aug 2005 01:25:27 -0000	1.7
+++ gas/config/tc-maxq.c	23 Apr 2006 22:06:55 -0000
@@ -451,7 +451,7 @@
 }
 
 /* GAS will call this for every rs_machine_dependent fragment. The
-   instruction is compleated using the data from the relaxation pass. It may
+   instruction is completed using the data from the relaxation pass. It may
    also create any necessary relocations.  */
 void
 md_convert_frag (bfd *   headers ATTRIBUTE_UNUSED,
@@ -687,7 +687,7 @@
 #define SET_PFX_ARG(x) (PFX_INSN[1] = x)
 
 
-/* This function sets the PFX value coresponding to the specs. Source
+/* This function sets the PFX value corresponding to the specs. Source
    Destination Index Selection ---------------------------------- Write To|
    SourceRegRange | Dest Addr Range
    ------------------------------------------------------ PFX[0] | 0h-Fh |
@@ -1150,7 +1150,7 @@
       return 1;
     }
 
-  /* Check For Sign Charcater.  */
+  /* Check For Sign Character.  */
   sign_val = 0;
 
   do
@@ -1600,7 +1600,7 @@
 	  return 1;
 	}
 
-      /* Get the origanal string.  */
+      /* Get the original string.  */
       memcpy (op_string, operand_string, strlen (operand_string) + 1);
       ii = strlen (operand_string) + 1;
 
@@ -3101,7 +3101,7 @@
   if (!match_filters ())
     return;
 
-  /* Check for the approprate PFX register.  */
+  /* Check for the appropriate PFX register.  */
   set_prefix ();
   pfx_for_imm_val (0);
 
Index: gas/config/tc-maxq.h
===================================================================
--- gas/config/tc-maxq.h	11 Aug 2005 01:25:27 -0000	1.3
+++ gas/config/tc-maxq.h	23 Apr 2006 22:06:55 -0000
@@ -1,4 +1,4 @@
-/* tc-maxq.h -- Header file for the asssembler(MAXQ)
+/* tc-maxq.h -- Header file for the assembler(MAXQ)
 
    Copyright 2004, 2005  Free Software Foundation, Inc.
 
@@ -116,10 +116,10 @@
 extern void maxq_number_to_chars (char *, valueT, int);
 
 /* If this macro is defined, it is a pointer to a NULL terminated list of
-   chracters which may appear in an operand. GAS already assumes that all
-   alphanumeric chracters, and '$', '.', and '_' may appear in an
+   characters which may appear in an operand. GAS already assumes that all
+   alphanumeric characters, and '$', '.', and '_' may appear in an
    operand("symbol_char"in app.c). This macro may be defined to treat
-   additional chracters as appearing in an operand. This affects the way in
+   additional characters as appearing in an operand. This affects the way in
    which GAS removes whitespaces before passing the string to md_assemble.  */
 #define tc_symbol_chars_extra_symbol_chars
 
Index: gas/config/tc-mips.c
===================================================================
--- gas/config/tc-mips.c	22 Mar 2006 09:28:13 -0000	1.328
+++ gas/config/tc-mips.c	23 Apr 2006 22:06:56 -0000
@@ -150,7 +150,7 @@
   /* True if this entry cannot be moved from its current position.  */
   unsigned int fixed_p : 1;
 
-  /* True if this instruction occured in a .set noreorder block.  */
+  /* True if this instruction occurred in a .set noreorder block.  */
   unsigned int noreorder_p : 1;
 
   /* True for mips16 instructions that jump to an absolute address.  */
@@ -11809,7 +11809,7 @@
 
      There's nothing really harmful in this, since bfd will correct
      SHT_PROGBITS to SHT_MIPS_DWARF before writing out the file.  But it
-     means that, for backwards compatibiltiy, the special_section entries
+     means that, for backwards compatibility, the special_section entries
      for dwarf sections must use SHT_PROGBITS rather than SHT_MIPS_DWARF.
 
      Even so, we shouldn't force users of the MIPS .section syntax to
Index: gas/config/tc-msp430.c
===================================================================
--- gas/config/tc-msp430.c	9 Sep 2005 08:46:19 -0000	1.22
+++ gas/config/tc-msp430.c	23 Apr 2006 22:06:56 -0000
@@ -34,7 +34,7 @@
 
 /*
    We will disable polymorphs by default because it is dangerous.
-   The potencial problem here is the following: assume we got the
+   The potential problem here is the following: assume we got the
    following code:
 
 	jump .l1
@@ -487,7 +487,7 @@
   return s;
 }
 
-/* Extract one word from FROM and copy it to TO. Delimeters are ",;\n"  */
+/* Extract one word from FROM and copy it to TO. Delimiters are ",;\n"  */
 
 static char *
 extract_operand (char * from, char * to, int limit)
Index: gas/config/tc-sh.c
===================================================================
--- gas/config/tc-sh.c	11 Oct 2005 11:16:16 -0000	1.114
+++ gas/config/tc-sh.c	23 Apr 2006 22:06:57 -0000
@@ -2798,7 +2798,7 @@
   if (opcode == NULL)
     {
       /* The opcode is not in the hash table.
-	 This means we definately have an assembly failure,
+	 This means we definitely have an assembly failure,
 	 but the instruction may be valid in another CPU variant.
 	 In this case emit something better than 'unknown opcode'.
 	 Search the full table in sh-opc.h to check. */
Index: gas/config/tc-tic4x.c
===================================================================
--- gas/config/tc-tic4x.c	30 Sep 2005 15:48:24 -0000	1.19
+++ gas/config/tc-tic4x.c	23 Apr 2006 22:06:57 -0000
@@ -2640,7 +2640,7 @@
 
       if ((i = tic4x_operands_parse (s, insn->operands, 0)) < 0)
 	{
-	  insn->inst = NULL;	/* Flag that error occured.  */
+	  insn->inst = NULL;	/* Flag that error occurred.  */
 	  insn->parallel = 0;
 	  insn->in_use = 0;
 	  return;
Index: gas/config/tc-xtensa.c
===================================================================
--- gas/config/tc-xtensa.c	15 Apr 2006 00:04:15 -0000	1.63
+++ gas/config/tc-xtensa.c	23 Apr 2006 22:06:58 -0000
@@ -8616,7 +8616,7 @@
     c          0      2         1 (case 5b makes this case unnecessary)
    6a          2      0         0
     b          1      0         3
-    c          0      1         4 (case 6b makes this case unneccesary)
+    c          0      1         4 (case 6b makes this case unnecessary)
     d          1      1         1 (case 6a makes this case unnecessary)
     e          0      2         2 (case 6a makes this case unnecessary)
     f          0      3         0 (case 6a makes this case unnecessary)


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