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