* config/tc-hppa.c: Fix comment typos.

* config/tc-i370.c: Likewise.
	* config/tc-i386.c: Likewise.
	* config/tc-i386.h: Likewise.
	* config/tc-i960.c: Likewise.
	* config/tc-ia64.c: Likewise.
	* config/tc-iq2000.h: Likewise.
This commit is contained in:
Kazu Hirata
2003-11-21 14:38:06 +00:00
parent a2e224686a
commit 0234cb7c70
7 changed files with 41 additions and 41 deletions

View File

@ -43,7 +43,7 @@ error only one of OBJ_ELF and OBJ_SOM can be defined
#ifdef OBJ_ELF #ifdef OBJ_ELF
#include "dwarf2dbg.h" #include "dwarf2dbg.h"
/* A "convient" place to put object file dependencies which do /* A "convenient" place to put object file dependencies which do
not need to be seen outside of tc-hppa.c. */ not need to be seen outside of tc-hppa.c. */
/* Object file formats specify relocation types. */ /* Object file formats specify relocation types. */
@ -748,7 +748,7 @@ const char FLT_CHARS[] = "rRsSfFdDxXpP";
static struct pa_it the_insn; static struct pa_it the_insn;
/* Points to the end of an expression just parsed by get_expressoin /* Points to the end of an expression just parsed by get_expression
and friends. FIXME. This shouldn't be handled with a file-global and friends. FIXME. This shouldn't be handled with a file-global
variable. */ variable. */
static char *expr_end; static char *expr_end;
@ -1158,7 +1158,7 @@ static struct default_space_dict pa_def_spaces[] =
continue; \ continue; \
} }
/* Simple range checking for FIELD againt HIGH and LOW bounds. /* Simple range checking for FIELD against HIGH and LOW bounds.
IGNORE is used to suppress the error message. */ IGNORE is used to suppress the error message. */
#define CHECK_FIELD(FIELD, HIGH, LOW, IGNORE) \ #define CHECK_FIELD(FIELD, HIGH, LOW, IGNORE) \
@ -1186,7 +1186,7 @@ static struct default_space_dict pa_def_spaces[] =
} \ } \
} }
/* Simple alignment checking for FIELD againt ALIGN (a power of two). /* Simple alignment checking for FIELD against ALIGN (a power of two).
IGNORE is used to suppress the error message. */ IGNORE is used to suppress the error message. */
#define CHECK_ALIGN(FIELD, ALIGN, IGNORE) \ #define CHECK_ALIGN(FIELD, ALIGN, IGNORE) \
@ -1543,7 +1543,7 @@ md_assemble (str)
/* Assemble the instruction. Results are saved into "the_insn". */ /* Assemble the instruction. Results are saved into "the_insn". */
pa_ip (str); pa_ip (str);
/* Get somewhere to put the assembled instrution. */ /* Get somewhere to put the assembled instruction. */
to = frag_more (4); to = frag_more (4);
/* Output the opcode. */ /* Output the opcode. */
@ -1639,7 +1639,7 @@ pa_ip (str)
/* If this instruction is specific to a particular architecture, /* If this instruction is specific to a particular architecture,
then set a new architecture. */ then set a new architecture. */
/* But do not automatically promote to pa2.0. The automatic promotion /* But do not automatically promote to pa2.0. The automatic promotion
crud is for compatability with HP's old assemblers only. */ crud is for compatibility with HP's old assemblers only. */
if (insn->arch < 20 if (insn->arch < 20
&& bfd_get_mach (stdoutput) < insn->arch) && bfd_get_mach (stdoutput) < insn->arch)
{ {
@ -4845,7 +4845,7 @@ pa_parse_number (s, is_float)
/* There is where we'd come for an undefined symbol /* There is where we'd come for an undefined symbol
or for an empty string. For an empty string we or for an empty string. For an empty string we
will return zero. That's a concession made for will return zero. That's a concession made for
compatability with the braindamaged HP assemblers. */ compatibility with the braindamaged HP assemblers. */
if (*name == 0) if (*name == 0)
num = 0; num = 0;
else else
@ -5216,11 +5216,11 @@ pa_get_absolute_expression (insn, strp)
expression (&insn->exp); expression (&insn->exp);
/* This is not perfect, but is a huge improvement over doing nothing. /* This is not perfect, but is a huge improvement over doing nothing.
The PA assembly syntax is ambigious in a variety of ways. Consider The PA assembly syntax is ambiguous in a variety of ways. Consider
this string "4 %r5" Is that the number 4 followed by the register this string "4 %r5" Is that the number 4 followed by the register
r5, or is that 4 MOD r5? r5, or is that 4 MOD r5?
If we get a modulo expresion When looking for an absolute, we try If we get a modulo expression when looking for an absolute, we try
again cutting off the input string at the first whitespace character. */ again cutting off the input string at the first whitespace character. */
if (insn->exp.X_op == O_modulus) if (insn->exp.X_op == O_modulus)
{ {
@ -5358,7 +5358,7 @@ pa_parse_nullif (s)
} }
/* Parse a non-negated compare/subtract completer returning the /* Parse a non-negated compare/subtract completer returning the
number (for encoding in instrutions) of the given completer. */ number (for encoding in instructions) of the given completer. */
static int static int
pa_parse_nonneg_cmpsub_cmpltr (s) pa_parse_nonneg_cmpsub_cmpltr (s)
@ -5429,7 +5429,7 @@ pa_parse_nonneg_cmpsub_cmpltr (s)
} }
/* Parse a negated compare/subtract completer returning the /* Parse a negated compare/subtract completer returning the
number (for encoding in instrutions) of the given completer. */ number (for encoding in instructions) of the given completer. */
static int static int
pa_parse_neg_cmpsub_cmpltr (s) pa_parse_neg_cmpsub_cmpltr (s)
@ -5504,7 +5504,7 @@ pa_parse_neg_cmpsub_cmpltr (s)
} }
/* Parse a 64 bit compare and branch completer returning the number (for /* Parse a 64 bit compare and branch completer returning the number (for
encoding in instrutions) of the given completer. encoding in instructions) of the given completer.
Nonnegated comparisons are returned as 0-7, negated comparisons are Nonnegated comparisons are returned as 0-7, negated comparisons are
returned as 8-15. */ returned as 8-15. */
@ -5601,7 +5601,7 @@ pa_parse_cmpb_64_cmpltr (s)
} }
/* Parse a 64 bit compare immediate and branch completer returning the number /* Parse a 64 bit compare immediate and branch completer returning the number
(for encoding in instrutions) of the given completer. */ (for encoding in instructions) of the given completer. */
static int static int
pa_parse_cmpib_64_cmpltr (s) pa_parse_cmpib_64_cmpltr (s)
@ -5663,7 +5663,7 @@ pa_parse_cmpib_64_cmpltr (s)
} }
/* Parse a non-negated addition completer returning the number /* Parse a non-negated addition completer returning the number
(for encoding in instrutions) of the given completer. */ (for encoding in instructions) of the given completer. */
static int static int
pa_parse_nonneg_add_cmpltr (s) pa_parse_nonneg_add_cmpltr (s)
@ -5733,7 +5733,7 @@ pa_parse_nonneg_add_cmpltr (s)
} }
/* Parse a negated addition completer returning the number /* Parse a negated addition completer returning the number
(for encoding in instrutions) of the given completer. */ (for encoding in instructions) of the given completer. */
static int static int
pa_parse_neg_add_cmpltr (s) pa_parse_neg_add_cmpltr (s)
@ -5807,7 +5807,7 @@ pa_parse_neg_add_cmpltr (s)
} }
/* Parse a 64 bit wide mode add and branch completer returning the number (for /* Parse a 64 bit wide mode add and branch completer returning the number (for
encoding in instrutions) of the given completer. */ encoding in instructions) of the given completer. */
static int static int
pa_parse_addb_64_cmpltr (s) pa_parse_addb_64_cmpltr (s)
@ -5974,7 +5974,7 @@ pa_brtab (begin)
{ {
#ifdef OBJ_SOM #ifdef OBJ_SOM
/* The BRTAB relocations are only availble in SOM (to denote /* The BRTAB relocations are only available in SOM (to denote
the beginning and end of branch tables). */ the beginning and end of branch tables). */
char *where = frag_more (0); char *where = frag_more (0);
@ -6000,7 +6000,7 @@ pa_try (begin)
if (! begin) if (! begin)
expression (&exp); expression (&exp);
/* The TRY relocations are only availble in SOM (to denote /* The TRY relocations are only available in SOM (to denote
the beginning and end of exception handling regions). */ the beginning and end of exception handling regions). */
fix_new_hppa (frag_now, where - frag_now->fr_literal, 0, fix_new_hppa (frag_now, where - frag_now->fr_literal, 0,
@ -6423,7 +6423,7 @@ pa_enter (unused)
} }
/* Process a .ENTRY pseudo-op. .ENTRY marks the beginning of the /* Process a .ENTRY pseudo-op. .ENTRY marks the beginning of the
procesure. */ procedure. */
static void static void
pa_entry (unused) pa_entry (unused)
int unused ATTRIBUTE_UNUSED; int unused ATTRIBUTE_UNUSED;
@ -6781,7 +6781,7 @@ pa_type_args (symbolP, is_export)
#endif #endif
*input_line_pointer = c; *input_line_pointer = c;
} }
/* Privelege level. */ /* Privilege level. */
else if ((strncasecmp (name, "priv_lev", 8)) == 0) else if ((strncasecmp (name, "priv_lev", 8)) == 0)
{ {
p = input_line_pointer; p = input_line_pointer;
@ -6836,7 +6836,7 @@ pa_import (unused)
} }
else else
{ {
/* Sigh. To be compatable with the HP assembler and to help /* Sigh. To be compatible with the HP assembler and to help
poorly written assembly code, we assign a type based on poorly written assembly code, we assign a type based on
the current segment. Note only BSF_FUNCTION really the current segment. Note only BSF_FUNCTION really
matters, we do not need to set the full SYMBOL_TYPE_* info. */ matters, we do not need to set the full SYMBOL_TYPE_* info. */
@ -7065,7 +7065,7 @@ pa_proc (unused)
demand_empty_rest_of_line (); demand_empty_rest_of_line ();
} }
/* Process the syntatical end of a procedure. Make sure all the /* Process the syntactical end of a procedure. Make sure all the
appropriate pseudo-ops were found within the procedure. */ appropriate pseudo-ops were found within the procedure. */
static void static void
@ -7274,7 +7274,7 @@ pa_parse_space_stmt (space_name, create_flag)
/* If create_flag is nonzero, then create the new space with /* If create_flag is nonzero, then create the new space with
the attributes computed above. Else set the values in the attributes computed above. Else set the values in
an already existing space -- this can only happen for an already existing space -- this can only happen for
the first occurence of a built-in space. */ the first occurrence of a built-in space. */
if (create_flag) if (create_flag)
space = create_new_space (space_name, spnum, loadable, defined, space = create_new_space (space_name, spnum, loadable, defined,
private, sort, seg, 1); private, sort, seg, 1);
@ -8462,7 +8462,7 @@ hppa_fix_adjustable (fixp)
. RR%sect+4092 == (R%sect)+4092 . RR%sect+4092 == (R%sect)+4092
. RR%sect+4096 == (R%sect)-4096 . RR%sect+4096 == (R%sect)-4096
and the last address loses because rounding the addend to 8k and the last address loses because rounding the addend to 8k
mutiples takes us up to 8192 with an offset of -4096. multiples takes us up to 8192 with an offset of -4096.
In cases where the LR% expression is identical to the RR% one we In cases where the LR% expression is identical to the RR% one we
will never have a problem, but is so happens that gcc rounds will never have a problem, but is so happens that gcc rounds

View File

@ -1378,8 +1378,8 @@ add_to_lit_pool (expressionS *exx, char *name, int sz)
next_literal_pool_place++; next_literal_pool_place++;
} }
/* ???_poolP points to the begining of the literal pool. /* ???_poolP points to the beginning of the literal pool.
* X_add_number is the offset from the begining of the * X_add_number is the offset from the beginning of the
* literal pool to this expr minus the location of the most * literal pool to this expr minus the location of the most
* recent .using directive. Thus, the grand total value of the * recent .using directive. Thus, the grand total value of the
* expression is the distance from .using to the literal. * expression is the distance from .using to the literal.
@ -1661,7 +1661,7 @@ i370_addr_cons (expressionS *exp)
} }
cons_len = (hex_len+1) /2; cons_len = (hex_len+1) /2;
} }
/* I beleive this works even for =XL8'dada0000beeebaaa' /* I believe this works even for =XL8'dada0000beeebaaa'
* which should parse out to X_op == O_big * which should parse out to X_op == O_big
* Note that floats and doubles get represented as * Note that floats and doubles get represented as
* 0d3.14159265358979 or 0f 2.7 * 0d3.14159265358979 or 0f 2.7
@ -1794,7 +1794,7 @@ i370_ltorg (ignore)
#define EMIT_ADDR_CONS_SYMBOLS #define EMIT_ADDR_CONS_SYMBOLS
#ifdef EMIT_ADDR_CONS_SYMBOLS #ifdef EMIT_ADDR_CONS_SYMBOLS
/* create a bogus symbol, add it to the pool ... /* create a bogus symbol, add it to the pool ...
* For the most part, I think this is a useless excercise, * For the most part, I think this is a useless exercise,
* except that having these symbol names in the objects * except that having these symbol names in the objects
* is vaguely useful for debugging ... * is vaguely useful for debugging ...
*/ */
@ -1846,7 +1846,7 @@ i370_using (ignore)
*star = '.'; *star = '.';
/* the first arg to using will usually be ".", but it can /* the first arg to using will usually be ".", but it can
* be a more complex exprsssion too ... */ * be a more complex expression too ... */
expression (&baseaddr); expression (&baseaddr);
if (star) if (star)
*star = '*'; *star = '*';
@ -2188,7 +2188,7 @@ md_assemble (str)
/* Check for an address constant expression. */ /* Check for an address constant expression. */
/* We will put PSW-relative addresses in the text section, /* We will put PSW-relative addresses in the text section,
* and adress literals in the .data (or other) section. */ * and address literals in the .data (or other) section. */
else if (i370_addr_cons (&ex)) else if (i370_addr_cons (&ex))
use_other=1; use_other=1;
else if (i370_addr_offset (&ex)) else if (i370_addr_offset (&ex))

View File

@ -239,7 +239,7 @@ static char digit_chars[256];
#define is_identifier_char(x) (identifier_chars[(unsigned char) x]) #define is_identifier_char(x) (identifier_chars[(unsigned char) x])
#define is_digit_char(x) (digit_chars[(unsigned char) x]) #define is_digit_char(x) (digit_chars[(unsigned char) x])
/* All non-digit non-letter charcters that may occur in an operand. */ /* All non-digit non-letter characters that may occur in an operand. */
static char operand_special_chars[] = "%$-+(,)*._~/<>|&^!:[@]"; static char operand_special_chars[] = "%$-+(,)*._~/<>|&^!:[@]";
/* md_assemble() always leaves the strings it's passed unaltered. To /* md_assemble() always leaves the strings it's passed unaltered. To
@ -4632,7 +4632,7 @@ md_apply_fix3 (fixP, valP, seg)
} }
/* Fix a few things - the dynamic linker expects certain values here, /* Fix a few things - the dynamic linker expects certain values here,
and we must not dissappoint it. */ and we must not disappoint it. */
#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) #if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
if (OUTPUT_FLAVOR == bfd_target_elf_flavour if (OUTPUT_FLAVOR == bfd_target_elf_flavour
&& fixP->fx_addsy) && fixP->fx_addsy)

View File

@ -193,7 +193,7 @@ typedef struct
#define CpuSSE 0x1000 /* Streaming SIMD extensions required */ #define CpuSSE 0x1000 /* Streaming SIMD extensions required */
#define CpuSSE2 0x2000 /* Streaming SIMD extensions 2 required */ #define CpuSSE2 0x2000 /* Streaming SIMD extensions 2 required */
#define Cpu3dnow 0x4000 /* 3dnow! support required */ #define Cpu3dnow 0x4000 /* 3dnow! support required */
#define CpuPNI 0x8000 /* Prescott New Instuctions required */ #define CpuPNI 0x8000 /* Prescott New Instructions required */
/* These flags are set by gas depending on the flag_code. */ /* These flags are set by gas depending on the flag_code. */
#define Cpu64 0x4000000 /* 64bit support required */ #define Cpu64 0x4000000 /* 64bit support required */

View File

@ -177,7 +177,7 @@ static void relax_cobr PARAMS ((fragS *));
static void s_leafproc PARAMS ((int, char *[])); static void s_leafproc PARAMS ((int, char *[]));
/* Process '.sysproc' pseudo-op */ /* Process '.sysproc' pseudo-op */
static void s_sysproc PARAMS ((int, char *[])); static void s_sysproc PARAMS ((int, char *[]));
/* Will a 'shlo' substiture for a 'ldconst'? */ /* Will a 'shlo' substitute for a 'ldconst'? */
static int shift_ok PARAMS ((int)); static int shift_ok PARAMS ((int));
/* Give syntax error */ /* Give syntax error */
static void syntax PARAMS ((void)); static void syntax PARAMS ((void));
@ -1323,7 +1323,7 @@ ctrl_fmt (targP, opcode, num_ops)
colon (brlab_next ()); colon (brlab_next ());
} }
/* The operand MUST be an ip-relative displacment. Parse it /* The operand MUST be an ip-relative displacement. Parse it
* and set up address fix for the instruction we just output. * and set up address fix for the instruction we just output.
*/ */
get_cdisp (targP, "CTRL", opcode, 24, 0, 0); get_cdisp (targP, "CTRL", opcode, 24, 0, 0);
@ -1888,7 +1888,7 @@ parse_ldconst (arg)
* ldconst -1,<reg> ->subo 1,0,<reg> * ldconst -1,<reg> ->subo 1,0,<reg>
* ldconst -31,<reg>->subo 31,0,<reg> * ldconst -31,<reg>->subo 31,0,<reg>
* *
* anthing else becomes: * anything else becomes:
* lda xxx,<reg> * lda xxx,<reg>
*/ */
n = offs (e); n = offs (e);

View File

@ -698,7 +698,7 @@ static struct
typedef void (*vbyte_func) PARAMS ((int, char *, char *)); typedef void (*vbyte_func) PARAMS ((int, char *, char *));
/* Forward delarations: */ /* Forward declarations: */
static int ar_is_in_integer_unit PARAMS ((int regnum)); static int ar_is_in_integer_unit PARAMS ((int regnum));
static void set_section PARAMS ((char *name)); static void set_section PARAMS ((char *name));
static unsigned int set_regstack PARAMS ((unsigned int, unsigned int, static unsigned int set_regstack PARAMS ((unsigned int, unsigned int,
@ -2669,7 +2669,7 @@ optimize_unw_records (list)
/* Given a complete record list, process any records which have /* Given a complete record list, process any records which have
unresolved fields, (ie length counts for a prologue). After unresolved fields, (ie length counts for a prologue). After
this has been run, all neccessary information should be available this has been run, all necessary information should be available
within each record to generate an image. */ within each record to generate an image. */
static void static void
@ -2855,7 +2855,7 @@ setup_unwind_header (int size, unsigned char **mem)
int x, extra = 0; int x, extra = 0;
valueT flag_value; valueT flag_value;
/* pad to pointer-size boundry. */ /* pad to pointer-size boundary. */
x = size % md.pointer_size; x = size % md.pointer_size;
if (x != 0) if (x != 0)
extra = md.pointer_size - x; extra = md.pointer_size - x;
@ -6574,7 +6574,7 @@ md_begin ()
bfd_set_section_alignment (stdoutput, text_section, 4); bfd_set_section_alignment (stdoutput, text_section, 4);
/* Make sure fucntion pointers get initialized. */ /* Make sure function pointers get initialized. */
target_big_endian = -1; target_big_endian = -1;
dot_byteorder (TARGET_BYTES_BIG_ENDIAN); dot_byteorder (TARGET_BYTES_BIG_ENDIAN);

View File

@ -55,7 +55,7 @@ extern void iq2000_frob_file PARAMS ((void));
#define obj_fix_adjustable(fixP) iq2000_fix_adjustable (fixP) #define obj_fix_adjustable(fixP) iq2000_fix_adjustable (fixP)
extern bfd_boolean iq2000_fix_adjustable PARAMS ((struct fix *)); extern bfd_boolean iq2000_fix_adjustable PARAMS ((struct fix *));
/* Afrer creating a fixup for an instruction operand, we need to check /* After creating a fixup for an instruction operand, we need to check
for HI16 relocs and queue them up for later sorting. */ for HI16 relocs and queue them up for later sorting. */
#define md_cgen_record_fixup_exp iq2000_cgen_record_fixup_exp #define md_cgen_record_fixup_exp iq2000_cgen_record_fixup_exp