Fix formatting

This commit is contained in:
Nick Clifton
2000-07-08 18:13:58 +00:00
parent 227aeb0758
commit c4aa876b91
2 changed files with 72 additions and 71 deletions

View File

@ -1,3 +1,7 @@
2000-07-08 Kazu Hirata <kazu@hxi.com>
* config/tc-sh.c: Fix formatting.
2000-07-07 Kazu Hirata <kazu@hxi.com>
* config/tc-sh.c: Fix comments.

View File

@ -602,7 +602,8 @@ parse_reg (src, mode, reg)
return 0;
}
static symbolS *dot()
static symbolS *
dot ()
{
const char *fake;
@ -613,12 +614,9 @@ static symbolS *dot()
now_seg,
(valueT) frag_now_fix (),
frag_now);
}
static
char *
static char *
parse_exp (s, op)
char *s;
sh_operand_info *op;
@ -636,7 +634,6 @@ parse_exp (s, op)
return new;
}
/* The many forms of operand:
Rn Register direct
@ -654,11 +651,9 @@ parse_exp (s, op)
disp:12
#imm8
pr, gbr, vbr, macl, mach
*/
static
char *
static char *
parse_at (src, op)
char *src;
sh_operand_info *op;
@ -728,8 +723,9 @@ parse_at (src, op)
}
else if (mode == A_PC)
{
/* Turn a plain @(4,pc) into @(.+4,pc) */
if (op->immediate.X_op == O_constant) {
/* Turn a plain @(4,pc) into @(.+4,pc). */
if (op->immediate.X_op == O_constant)
{
op->immediate.X_add_symbol = dot();
op->immediate.X_op = O_symbol;
}
@ -822,8 +818,7 @@ get_operand (ptr, op)
}
}
static
char *
static char *
get_operands (info, args, operand)
sh_opcode_info *info;
char *args;
@ -884,8 +879,7 @@ get_operands (info, args, operand)
addressing modes, return the opcode which matches the opcodes
provided. */
static
sh_opcode_info *
static sh_opcode_info *
get_specific (opcode, operands)
sh_opcode_info *opcode;
sh_operand_info *operands;
@ -893,6 +887,7 @@ get_specific (opcode, operands)
sh_opcode_info *this_try = opcode;
char *name = opcode->name;
int n = 0;
while (opcode->name)
{
this_try = opcode++;
@ -1160,7 +1155,8 @@ get_specific (opcode, operands)
goto fail;
valid_arch &= this_try->arch;
return this_try;
fail:;
fail:
;
}
return 0;
@ -1181,7 +1177,6 @@ check (operand, low, high)
return operand->X_add_number;
}
static void
insert (where, how, pcrel, op)
char *where;
@ -1378,11 +1373,13 @@ build_Mytes (opcode, operand)
}
}
}
if (! target_big_endian) {
if (!target_big_endian)
{
output[1] = (nbuf[0] << 4) | (nbuf[1]);
output[0] = (nbuf[2] << 4) | (nbuf[3]);
}
else {
else
{
output[0] = (nbuf[0] << 4) | (nbuf[1]);
output[1] = (nbuf[2] << 4) | (nbuf[3]);
}
@ -1957,7 +1954,6 @@ struct sh_count_relocs
symbol. When using BFD_ASSEMBLER, this is called via
bfd_map_over_sections. */
/*ARGSUSED*/
static void
sh_count_relocs (abfd, sec, data)
bfd *abfd ATTRIBUTE_UNUSED;
@ -1987,7 +1983,6 @@ sh_count_relocs (abfd, sec, data)
/* Handle the count relocs for a particular section. When using
BFD_ASSEMBLER, this is called via bfd_map_over_sections. */
/*ARGSUSED*/
static void
sh_frob_section (abfd, sec, ignore)
bfd *abfd ATTRIBUTE_UNUSED;
@ -2174,7 +2169,8 @@ md_convert_frag (headers, seg, fragP)
(unsigned long) fragP->fr_address,
S_GET_NAME (fragP->fr_symbol));
#if 0 /* This code works, but generates poor code and the compiler
#if 0
/* This code works, but generates poor code and the compiler
should never produce a sequence that requires it to be used. */
/* A jump wont fit in 12 bits, make code which looks like
@ -2297,7 +2293,8 @@ md_convert_frag (headers, seg, fragP)
(unsigned long) fragP->fr_address,
S_GET_NAME (fragP->fr_symbol));
#if 0 /* This code works, but generates poor code, and the compiler
#if 0
/* This code works, but generates poor code, and the compiler
should never produce a sequence that requires it to be used. */
/* A bcond won't fit and it won't go into a 12 bit