From: Kazu Hirata Date: Sun, 14 Jan 2001 18:54:06 +0000 (+0000) Subject: 2001-01-14 Kazu Hirata X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfb32b5207ace0393bdab29a2c1d832597fd74b5;p=binutils-gdb.git 2001-01-14 Kazu Hirata * config/tc-alpha.c: Fix formatting. * config/tc-arc.c: Likewise. * config/tc-arc.h: Likewise. * config/tc-d10v.c: Likewise. * config/tc-i370.c: Likewise. * config/tc-i386.c: Likewise. * config/tc-i960.c: Likewise. * config/tc-m68k.c: Likewise. * config/tc-ppc.c: Likewise. * config/tc-sparc.c: Likewise. * config/tc-tahoe.c: Likewise. * config/tc-vax.c: Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index b52480cea93..f72671cdb46 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,18 @@ +2001-01-14 Kazu Hirata + + * config/tc-alpha.c: Fix formatting. + * config/tc-arc.c: Likewise. + * config/tc-arc.h: Likewise. + * config/tc-d10v.c: Likewise. + * config/tc-i370.c: Likewise. + * config/tc-i386.c: Likewise. + * config/tc-i960.c: Likewise. + * config/tc-m68k.c: Likewise. + * config/tc-ppc.c: Likewise. + * config/tc-sparc.c: Likewise. + * config/tc-tahoe.c: Likewise. + * config/tc-vax.c: Likewise. + 2001-01-14 Alan Modra * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 8c030aef738..ee9e220e5c5 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -5706,7 +5706,7 @@ alpha_align (n, pfill, label, force) /* This is called from HANDLE_ALIGN in write.c. Fill in the contents of an rs_align_code fragment. */ -void +void alpha_handle_align (fragp) fragS *fragp; { diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c index 754829f37e5..30e5bb15208 100644 --- a/gas/config/tc-arc.c +++ b/gas/config/tc-arc.c @@ -56,7 +56,7 @@ const struct suffix_classes { { "SUFFIX_NONE", 11 } }; -#define MAXSUFFIXCLASS (sizeof(suffixclass) / sizeof(struct suffix_classes)) +#define MAXSUFFIXCLASS (sizeof (suffixclass) / sizeof (struct suffix_classes)) const struct syntax_classes { char *name; @@ -71,7 +71,7 @@ const struct syntax_classes { { "SYNTAX_2OP", 10, SYNTAX_2OP|SYNTAX_VALID } }; -#define MAXSYNTAXCLASS (sizeof(syntaxclass) / sizeof(struct syntax_classes)) +#define MAXSYNTAXCLASS (sizeof (syntaxclass) / sizeof (struct syntax_classes)) const pseudo_typeS md_pseudo_table[] = { @@ -104,9 +104,9 @@ const char comment_chars[] = "#;"; .line and .file directives will appear in the pre-processed output */ /* Note that input_file.c hand checks for '#' at the beginning of the first line of the input file. This is because the compiler outputs - #NO_APP at the beginning of its output. */ + #NO_APP at the beginning of its output. */ /* Also note that comments started like this one will always - work if '/' isn't otherwise defined. */ + work if '/' isn't otherwise defined. */ const char line_comment_chars[] = "#"; const char line_separator_chars[] = ""; @@ -599,7 +599,7 @@ md_assemble (str) NULL); else insn |= suffix->value << operand->shift; - + str = t; found = 1; break; @@ -674,7 +674,7 @@ md_assemble (str) break; /* If this is a register constant (IE: one whose register value gets stored as 61-63) then this - must be a limm. */ + must be a limm. */ /* ??? This bit could use some cleaning up. Referencing the format chars like this goes against style. */ @@ -682,7 +682,7 @@ md_assemble (str) { const char *junk; limm_reloc_p = 1; - /* save this, we don't yet know what reloc to use */ + /* save this, we don't yet know what reloc to use */ fix_up_at = fc; /* Tell insert_reg we need a limm. This is needed because the value at this point is @@ -953,10 +953,10 @@ arc_extoper (opertype) free(name); return; } - + input_line_pointer++; /* skip ',' */ mode = input_line_pointer; - + if (!strncmp(mode, "r|w",3)) { imode = 0; @@ -1014,7 +1014,7 @@ arc_extoper (opertype) } else { - input_line_pointer += 12; + input_line_pointer += 12; } } } @@ -1037,11 +1037,11 @@ arc_extoper (opertype) } ext_oper = (struct arc_ext_operand_value *) \ - xmalloc(sizeof(struct arc_ext_operand_value)); + xmalloc(sizeof (struct arc_ext_operand_value)); if(opertype) { - /* if the symbol already exists, point it at the new definition */ + /* if the symbol already exists, point it at the new definition */ if ((symbolP = symbol_find (name))) { if (S_GET_SEGMENT(symbolP) == reg_section) @@ -1304,7 +1304,7 @@ arc_extinst (ignore) strcat(syntax,"%F"); strcat(syntax,"%S%L"); - ext_op = (struct arc_opcode *) xmalloc(sizeof(struct arc_opcode)); + ext_op = (struct arc_opcode *) xmalloc(sizeof (struct arc_opcode)); if(NULL == ext_op) { ignore_rest_of_line (); @@ -1419,7 +1419,6 @@ arc_common (localScope) } assert (symbolP->sy_frag == &zero_address_frag); - /* Now parse the alignment field. This field is optional for local and global symbols. Default alignment is zero. */ if (*input_line_pointer == ',') @@ -1596,7 +1595,7 @@ md_number_to_chars (buf, val, n) number_to_chars_littleendian (buf, val, n); } -/* Round up a section size to the appropriate boundary. */ +/* Round up a section size to the appropriate boundary. */ valueT md_section_align (segment, size) @@ -1635,7 +1634,7 @@ arc_code_symbol(expressionP) expressionS *expressionP; { if (expressionP->X_op == O_symbol && expressionP->X_add_number == 0 - /* I think this test is unnecessary but just as a sanity check... */ + /* I think this test is unnecessary but just as a sanity check... */ && expressionP->X_op_symbol == NULL) { expressionS two; @@ -1672,9 +1671,9 @@ arc_code_symbol(expressionP) ??? We can't create new expression types so we map the %-op's onto the existing syntax. This means that the user could use the chosen syntax - to achieve the same effect. */ + to achieve the same effect. */ -void +void md_operand (expressionP) expressionS *expressionP; { @@ -1797,7 +1796,7 @@ arc_cons_fix_new (frag, where, nbytes, exp) /* The location from which a PC relative jump should be calculated, given a PC relative reloc. */ -long +long md_pcrel_from (fixP) fixS *fixP; { diff --git a/gas/config/tc-arc.h b/gas/config/tc-arc.h index d8da4ec0b4a..e81611b844e 100644 --- a/gas/config/tc-arc.h +++ b/gas/config/tc-arc.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with GAS; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + 02111-1307, USA. */ #define TC_ARC 1 diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c index ff05b677960..85cfe875960 100644 --- a/gas/config/tc-d10v.c +++ b/gas/config/tc-d10v.c @@ -72,7 +72,7 @@ typedef int packing_type; static packing_type etype = PACK_UNSPEC; /* Used by d10v_cleanup. */ /* True if instruction swapping warnings should be inhibited. - --nowarnswap. */ + --nowarnswap. */ static boolean flag_warn_suppress_instructionswap; /* True if instruction packing should be performed when --gstabs is specified. diff --git a/gas/config/tc-i370.c b/gas/config/tc-i370.c index 87ac11341c0..de9fce785bd 100644 --- a/gas/config/tc-i370.c +++ b/gas/config/tc-i370.c @@ -2679,7 +2679,6 @@ md_convert_frag (abfd, sec, fragp) /* We have no need to default values of symbols. */ -/*ARGSUSED*/ symbolS * md_undefined_symbol (name) char *name; diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 00fcfe1628d..f5be43c8852 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1126,7 +1126,7 @@ reloc (size, pcrel, sign, other) sign ? "signed" : "unsigned", size); } - abort(); + abort (); return BFD_RELOC_NONE; } @@ -1619,7 +1619,7 @@ md_assemble (line) break; case O_absent: case O_register: - abort(); + abort (); /* Symbols and expressions. */ default: /* Convert symbolic operand to proper sizes for matching. */ @@ -2970,7 +2970,7 @@ md_assemble (line) } /* We should find the immediate. */ if (n1 == i.operands) - abort(); + abort (); i.op[n].disps->X_add_number -= imm_size; } @@ -3064,7 +3064,7 @@ md_assemble (line) { /* We don't support dynamic linking on x86-64 yet. */ if (flag_code == CODE_64BIT) - abort(); + abort (); reloc_type = BFD_RELOC_386_GOTPC; i.op[n].imms->X_add_number += 3; } @@ -4598,7 +4598,7 @@ i386_validate_fix (fixp) { /* GOTOFF relocation are nonsense in 64bit mode. */ if (flag_code == CODE_64BIT) - abort(); + abort (); fixp->fx_r_type = BFD_RELOC_386_GOTOFF; fixp->fx_subsy = 0; } @@ -4665,7 +4665,7 @@ tc_gen_reloc (section, fixp) { /* We don't support GOTPC on 64bit targets. */ if (flag_code == CODE_64BIT) - abort(); + abort (); code = BFD_RELOC_386_GOTPC; } @@ -4703,7 +4703,6 @@ tc_gen_reloc (section, fixp) rel->addend -= fixp->fx_size; } - rel->howto = bfd_reloc_type_lookup (stdoutput, code); if (rel->howto == NULL) { @@ -4932,7 +4931,6 @@ struct intel_token static struct intel_token cur_token, prev_token; - /* Token codes for the intel parser. Since T_SHORT is already used by COFF, undefine it first to prevent a warning. */ #define T_NIL -1 diff --git a/gas/config/tc-i960.c b/gas/config/tc-i960.c index 7c8b662b451..81ea6d83bb4 100644 --- a/gas/config/tc-i960.c +++ b/gas/config/tc-i960.c @@ -2788,7 +2788,6 @@ s_endian (ignore) /* We have no need to default values of symbols. */ -/* ARGSUSED */ symbolS * md_undefined_symbol (name) char *name; diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 10e26233a90..efd015fe067 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -7048,7 +7048,6 @@ is_label (str) /* We have no need to default values of symbols. */ -/* ARGSUSED */ symbolS * md_undefined_symbol (name) char *name ATTRIBUTE_UNUSED; @@ -7100,7 +7099,6 @@ md_pcrel_from (fixP) #ifndef BFD_ASSEMBLER #ifdef OBJ_COFF -/*ARGSUSED*/ void tc_coff_symbol_emit_hook (ignore) symbolS *ignore ATTRIBUTE_UNUSED; diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 4d4c321c816..2b826cbb322 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -4595,7 +4595,6 @@ md_convert_frag (abfd, sec, fragp) /* We have no need to default values of symbols. */ -/*ARGSUSED*/ symbolS * md_undefined_symbol (name) char *name ATTRIBUTE_UNUSED; diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index d6062678269..6c9827c2dde 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -4101,7 +4101,7 @@ sparc_handle_align (fragp) char *p; count = fragp->fr_next->fr_address - fragp->fr_address - fragp->fr_fix; - + switch (fragp->fr_type) { case rs_align_test: diff --git a/gas/config/tc-tahoe.c b/gas/config/tc-tahoe.c index 34df9399ed6..292de21fce3 100644 --- a/gas/config/tc-tahoe.c +++ b/gas/config/tc-tahoe.c @@ -1975,7 +1975,6 @@ md_assemble (instruction_string) /* We have no need to default values of symbols. */ -/* ARGSUSED */ symbolS * md_undefined_symbol (name) char *name; diff --git a/gas/config/tc-vax.c b/gas/config/tc-vax.c index d195c3532f8..1e7c21814ca 100644 --- a/gas/config/tc-vax.c +++ b/gas/config/tc-vax.c @@ -3204,7 +3204,6 @@ VMS options:\n\ /* We have no need to default values of symbols. */ -/* ARGSUSED */ symbolS * md_undefined_symbol (name) char *name;