2001-01-14 Kazu Hirata <kazu@hxi.com>

* 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.
This commit is contained in:
Kazu Hirata 2001-01-14 18:54:06 +00:00
parent d952f17a9d
commit bfb32b5207
13 changed files with 43 additions and 38 deletions

View File

@ -1,3 +1,18 @@
2001-01-14 Kazu Hirata <kazu@hxi.com>
* 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 <alan@linuxcare.com.au> 2001-01-14 Alan Modra <alan@linuxcare.com.au>
* config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for

View File

@ -5706,7 +5706,7 @@ alpha_align (n, pfill, label, force)
/* This is called from HANDLE_ALIGN in write.c. Fill in the contents /* This is called from HANDLE_ALIGN in write.c. Fill in the contents
of an rs_align_code fragment. */ of an rs_align_code fragment. */
void void
alpha_handle_align (fragp) alpha_handle_align (fragp)
fragS *fragp; fragS *fragp;
{ {

View File

@ -56,7 +56,7 @@ const struct suffix_classes {
{ "SUFFIX_NONE", 11 } { "SUFFIX_NONE", 11 }
}; };
#define MAXSUFFIXCLASS (sizeof(suffixclass) / sizeof(struct suffix_classes)) #define MAXSUFFIXCLASS (sizeof (suffixclass) / sizeof (struct suffix_classes))
const struct syntax_classes { const struct syntax_classes {
char *name; char *name;
@ -71,7 +71,7 @@ const struct syntax_classes {
{ "SYNTAX_2OP", 10, SYNTAX_2OP|SYNTAX_VALID } { "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[] = 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 */ .line and .file directives will appear in the pre-processed output */
/* Note that input_file.c hand checks for '#' at the beginning of the /* 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 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 /* 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_comment_chars[] = "#";
const char line_separator_chars[] = ""; const char line_separator_chars[] = "";
@ -599,7 +599,7 @@ md_assemble (str)
NULL); NULL);
else else
insn |= suffix->value << operand->shift; insn |= suffix->value << operand->shift;
str = t; str = t;
found = 1; found = 1;
break; break;
@ -674,7 +674,7 @@ md_assemble (str)
break; break;
/* If this is a register constant (IE: one whose /* If this is a register constant (IE: one whose
register value gets stored as 61-63) then this register value gets stored as 61-63) then this
must be a limm. */ must be a limm. */
/* ??? This bit could use some cleaning up. /* ??? This bit could use some cleaning up.
Referencing the format chars like this goes Referencing the format chars like this goes
against style. */ against style. */
@ -682,7 +682,7 @@ md_assemble (str)
{ {
const char *junk; const char *junk;
limm_reloc_p = 1; 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; fix_up_at = fc;
/* Tell insert_reg we need a limm. This is /* Tell insert_reg we need a limm. This is
needed because the value at this point is needed because the value at this point is
@ -953,10 +953,10 @@ arc_extoper (opertype)
free(name); free(name);
return; return;
} }
input_line_pointer++; /* skip ',' */ input_line_pointer++; /* skip ',' */
mode = input_line_pointer; mode = input_line_pointer;
if (!strncmp(mode, "r|w",3)) if (!strncmp(mode, "r|w",3))
{ {
imode = 0; imode = 0;
@ -1014,7 +1014,7 @@ arc_extoper (opertype)
} }
else else
{ {
input_line_pointer += 12; input_line_pointer += 12;
} }
} }
} }
@ -1037,11 +1037,11 @@ arc_extoper (opertype)
} }
ext_oper = (struct arc_ext_operand_value *) \ ext_oper = (struct arc_ext_operand_value *) \
xmalloc(sizeof(struct arc_ext_operand_value)); xmalloc(sizeof (struct arc_ext_operand_value));
if(opertype) 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 ((symbolP = symbol_find (name)))
{ {
if (S_GET_SEGMENT(symbolP) == reg_section) if (S_GET_SEGMENT(symbolP) == reg_section)
@ -1304,7 +1304,7 @@ arc_extinst (ignore)
strcat(syntax,"%F"); strcat(syntax,"%F");
strcat(syntax,"%S%L"); 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) if(NULL == ext_op)
{ {
ignore_rest_of_line (); ignore_rest_of_line ();
@ -1419,7 +1419,6 @@ arc_common (localScope)
} }
assert (symbolP->sy_frag == &zero_address_frag); assert (symbolP->sy_frag == &zero_address_frag);
/* Now parse the alignment field. This field is optional for /* Now parse the alignment field. This field is optional for
local and global symbols. Default alignment is zero. */ local and global symbols. Default alignment is zero. */
if (*input_line_pointer == ',') if (*input_line_pointer == ',')
@ -1596,7 +1595,7 @@ md_number_to_chars (buf, val, n)
number_to_chars_littleendian (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 valueT
md_section_align (segment, size) md_section_align (segment, size)
@ -1635,7 +1634,7 @@ arc_code_symbol(expressionP)
expressionS *expressionP; expressionS *expressionP;
{ {
if (expressionP->X_op == O_symbol && expressionP->X_add_number == 0 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) && expressionP->X_op_symbol == NULL)
{ {
expressionS two; 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 ??? 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 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) md_operand (expressionP)
expressionS *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, /* The location from which a PC relative jump should be calculated,
given a PC relative reloc. */ given a PC relative reloc. */
long long
md_pcrel_from (fixP) md_pcrel_from (fixP)
fixS *fixP; fixS *fixP;
{ {

View File

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License 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 along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */ 02111-1307, USA. */
#define TC_ARC 1 #define TC_ARC 1

View File

@ -72,7 +72,7 @@ typedef int packing_type;
static packing_type etype = PACK_UNSPEC; /* Used by d10v_cleanup. */ static packing_type etype = PACK_UNSPEC; /* Used by d10v_cleanup. */
/* True if instruction swapping warnings should be inhibited. /* True if instruction swapping warnings should be inhibited.
--nowarnswap. */ --nowarnswap. */
static boolean flag_warn_suppress_instructionswap; static boolean flag_warn_suppress_instructionswap;
/* True if instruction packing should be performed when --gstabs is specified. /* True if instruction packing should be performed when --gstabs is specified.

View File

@ -2679,7 +2679,6 @@ md_convert_frag (abfd, sec, fragp)
/* We have no need to default values of symbols. */ /* We have no need to default values of symbols. */
/*ARGSUSED*/
symbolS * symbolS *
md_undefined_symbol (name) md_undefined_symbol (name)
char *name; char *name;

View File

@ -1126,7 +1126,7 @@ reloc (size, pcrel, sign, other)
sign ? "signed" : "unsigned", size); sign ? "signed" : "unsigned", size);
} }
abort(); abort ();
return BFD_RELOC_NONE; return BFD_RELOC_NONE;
} }
@ -1619,7 +1619,7 @@ md_assemble (line)
break; break;
case O_absent: case O_absent:
case O_register: case O_register:
abort(); abort ();
/* Symbols and expressions. */ /* Symbols and expressions. */
default: default:
/* Convert symbolic operand to proper sizes for matching. */ /* Convert symbolic operand to proper sizes for matching. */
@ -2970,7 +2970,7 @@ md_assemble (line)
} }
/* We should find the immediate. */ /* We should find the immediate. */
if (n1 == i.operands) if (n1 == i.operands)
abort(); abort ();
i.op[n].disps->X_add_number -= imm_size; 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. */ /* We don't support dynamic linking on x86-64 yet. */
if (flag_code == CODE_64BIT) if (flag_code == CODE_64BIT)
abort(); abort ();
reloc_type = BFD_RELOC_386_GOTPC; reloc_type = BFD_RELOC_386_GOTPC;
i.op[n].imms->X_add_number += 3; i.op[n].imms->X_add_number += 3;
} }
@ -4598,7 +4598,7 @@ i386_validate_fix (fixp)
{ {
/* GOTOFF relocation are nonsense in 64bit mode. */ /* GOTOFF relocation are nonsense in 64bit mode. */
if (flag_code == CODE_64BIT) if (flag_code == CODE_64BIT)
abort(); abort ();
fixp->fx_r_type = BFD_RELOC_386_GOTOFF; fixp->fx_r_type = BFD_RELOC_386_GOTOFF;
fixp->fx_subsy = 0; fixp->fx_subsy = 0;
} }
@ -4665,7 +4665,7 @@ tc_gen_reloc (section, fixp)
{ {
/* We don't support GOTPC on 64bit targets. */ /* We don't support GOTPC on 64bit targets. */
if (flag_code == CODE_64BIT) if (flag_code == CODE_64BIT)
abort(); abort ();
code = BFD_RELOC_386_GOTPC; code = BFD_RELOC_386_GOTPC;
} }
@ -4703,7 +4703,6 @@ tc_gen_reloc (section, fixp)
rel->addend -= fixp->fx_size; rel->addend -= fixp->fx_size;
} }
rel->howto = bfd_reloc_type_lookup (stdoutput, code); rel->howto = bfd_reloc_type_lookup (stdoutput, code);
if (rel->howto == NULL) if (rel->howto == NULL)
{ {
@ -4932,7 +4931,6 @@ struct intel_token
static struct intel_token cur_token, prev_token; static struct intel_token cur_token, prev_token;
/* Token codes for the intel parser. Since T_SHORT is already used /* Token codes for the intel parser. Since T_SHORT is already used
by COFF, undefine it first to prevent a warning. */ by COFF, undefine it first to prevent a warning. */
#define T_NIL -1 #define T_NIL -1

View File

@ -2788,7 +2788,6 @@ s_endian (ignore)
/* We have no need to default values of symbols. */ /* We have no need to default values of symbols. */
/* ARGSUSED */
symbolS * symbolS *
md_undefined_symbol (name) md_undefined_symbol (name)
char *name; char *name;

View File

@ -7048,7 +7048,6 @@ is_label (str)
/* We have no need to default values of symbols. */ /* We have no need to default values of symbols. */
/* ARGSUSED */
symbolS * symbolS *
md_undefined_symbol (name) md_undefined_symbol (name)
char *name ATTRIBUTE_UNUSED; char *name ATTRIBUTE_UNUSED;
@ -7100,7 +7099,6 @@ md_pcrel_from (fixP)
#ifndef BFD_ASSEMBLER #ifndef BFD_ASSEMBLER
#ifdef OBJ_COFF #ifdef OBJ_COFF
/*ARGSUSED*/
void void
tc_coff_symbol_emit_hook (ignore) tc_coff_symbol_emit_hook (ignore)
symbolS *ignore ATTRIBUTE_UNUSED; symbolS *ignore ATTRIBUTE_UNUSED;

View File

@ -4595,7 +4595,6 @@ md_convert_frag (abfd, sec, fragp)
/* We have no need to default values of symbols. */ /* We have no need to default values of symbols. */
/*ARGSUSED*/
symbolS * symbolS *
md_undefined_symbol (name) md_undefined_symbol (name)
char *name ATTRIBUTE_UNUSED; char *name ATTRIBUTE_UNUSED;

View File

@ -4101,7 +4101,7 @@ sparc_handle_align (fragp)
char *p; char *p;
count = fragp->fr_next->fr_address - fragp->fr_address - fragp->fr_fix; count = fragp->fr_next->fr_address - fragp->fr_address - fragp->fr_fix;
switch (fragp->fr_type) switch (fragp->fr_type)
{ {
case rs_align_test: case rs_align_test:

View File

@ -1975,7 +1975,6 @@ md_assemble (instruction_string)
/* We have no need to default values of symbols. */ /* We have no need to default values of symbols. */
/* ARGSUSED */
symbolS * symbolS *
md_undefined_symbol (name) md_undefined_symbol (name)
char *name; char *name;

View File

@ -3204,7 +3204,6 @@ VMS options:\n\
/* We have no need to default values of symbols. */ /* We have no need to default values of symbols. */
/* ARGSUSED */
symbolS * symbolS *
md_undefined_symbol (name) md_undefined_symbol (name)
char *name; char *name;