2000-09-11 Kazu Hirata <kazu@hxi.com>

* config/tc-i370.c: Fix formatting.
	* config/tc-i960.c: Likewise.
	* config/tc-m68k.c: Likewise.
This commit is contained in:
Kazu Hirata 2000-09-11 19:49:46 +00:00
parent 2bba1017ee
commit 92774660ac
4 changed files with 70 additions and 113 deletions

View file

@ -1,3 +1,9 @@
2000-09-11 Kazu Hirata <kazu@hxi.com>
* config/tc-i370.c: Fix formatting.
* config/tc-i960.c: Likewise.
* config/tc-m68k.c: Likewise.
2000-09-09 Philip Blundell <philb@gnu.org>
* configure.in (arm*-*-uclinux*): New target.

View file

@ -75,7 +75,6 @@ const char EXP_CHARS[] = "eE";
as in 0d1.0. */
const char FLT_CHARS[] = "dD";
void
md_show_usage (stream)
FILE *stream;
@ -116,7 +115,6 @@ static void i370_elf_lcomm PARAMS ((int));
static void i370_elf_validate_fix PARAMS ((fixS *, segT));
#endif
/* The target specific pseudo-ops which we support. */
@ -186,7 +184,6 @@ struct pd_reg
1. r<reg_num> which has the value <reg_num>.
2. r.<reg_num> which has the value <reg_num>.
Each floating point register has predefined names of the form:
1. f<reg_num> which has the value <reg_num>.
2. f.<reg_num> which has the value <reg_num>.
@ -194,7 +191,6 @@ struct pd_reg
There are only four floating point registers, and these are
commonly labelled 0,2,4 and 6. Thus, there is no f1, f3, etc.
There are individual registers as well:
rbase or r.base has the value 3 (base register)
rpgt or r.pgt has the value 4 (page origin table pointer)
@ -222,7 +218,6 @@ static const struct pd_reg pre_defined_registers[] =
{ "f4", 4 },
{ "f6", 6 },
{ "dsa",13 }, /* stack pointer */
{ "lr", 14 }, /* Link Register */
{ "pgt", 4 }, /* Page Origin Table Pointer */
@ -1273,7 +1268,6 @@ i370_elf_validate_fix (fixp, seg)
}
#endif /* OBJ_ELF */
#define LITERAL_POOL_SUPPORT
#ifdef LITERAL_POOL_SUPPORT
@ -1755,7 +1749,6 @@ i370_ltorg (ignore)
else as_bad ("bad alignment of %d bytes in literal pool", biggest_literal_size);
if (0 == biggest_align) biggest_align = 1;
/* Align pool for short, word, double word accesses */
frag_align (biggest_align, 0, 0);
record_alignment (now_seg, biggest_align);
@ -2705,7 +2698,6 @@ md_pcrel_from_section (fixp, sec)
return fixp->fx_frag->fr_address + fixp->fx_where;
}
/* Apply a fixup to the object code. This is called for all the
fixups we generated by the call to fix_new_exp, above. In the call
above we used a reloc code which was the largest legal reloc code

View file

@ -1,5 +1,5 @@
/* tc-i960.c - All the i80960-specific stuff
Copyright (C) 1989, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999
Copyright (C) 1989, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This file is part of GAS.
@ -192,7 +192,6 @@ const char EXP_CHARS[] = "eE";
*/
const char FLT_CHARS[] = "fFdDtT";
/* Table used by base assembler to relax addresses based on varying length
instructions. The fields are:
1) most positive reach of this state,
@ -242,13 +241,11 @@ const pseudo_typeS md_pseudo_table[] =
#define adds(e) e.X_add_symbol
#define offs(e) e.X_add_number
/* Branch-prediction bits for CTRL/COBR format opcodes */
#define BP_MASK 0x00000002 /* Mask for branch-prediction bit */
#define BP_TAKEN 0x00000000 /* Value to OR in to predict branch */
#define BP_NOT_TAKEN 0x00000002 /* Value to OR in to predict no branch */
/* Some instruction opcodes that we need explicitly */
#define BE 0x12000000
#define BG 0x11000000
@ -268,14 +265,12 @@ const pseudo_typeS md_pseudo_table[] =
#define CALLS 0x66003800
#define RET 0x0a000000
/* These masks are used to build up a set of MEMB mode bits. */
#define A_BIT 0x0400
#define I_BIT 0x0800
#define MEMB_BIT 0x1000
#define D_BIT 0x2000
/* Mask for the only mode bit in a MEMA instruction (if set, abase reg is
used). */
#define MEMA_ABASE 0x2000
@ -294,7 +289,6 @@ typedef struct
memS;
/* The two pieces of info we need to generate a register operand */
struct regop
{
@ -303,7 +297,6 @@ struct regop
int n; /* Register number or literal value */
};
/* Number and assembler mnemonic for all registers that can appear in
operands. */
static const struct
@ -449,13 +442,11 @@ aregs[] =
{ NULL, 0 }, /* END OF LIST */
};
/* Hash tables */
static struct hash_control *op_hash; /* Opcode mnemonics */
static struct hash_control *reg_hash; /* Register name hash table */
static struct hash_control *areg_hash; /* Abase register hash table */
/* Architecture for which we are assembling */
#define ARCH_ANY 0 /* Default: no architecture checking done */
#define ARCH_KA 1
@ -470,7 +461,6 @@ int iclasses_seen; /* OR of instruction classes (I_* constants)
* instructions.
*/
/* BRANCH-PREDICTION INSTRUMENTATION
The following supports generation of branch-prediction instrumentation
@ -592,7 +582,6 @@ md_assemble (textP)
const char *bp_error_msg = _("branch prediction invalid on this opcode");
/* Parse instruction into opcode and operands */
memset (args, '\0', sizeof (args));
n_ops = i_scan (textP, args);
@ -611,8 +600,6 @@ md_assemble (textP)
}
}
/* Check for branch-prediction suffix on opcode mnemonic, strip it off */
n = strlen (args[0]) - 1;
branch_predict = 0;
@ -735,7 +722,6 @@ md_chars_to_number (val, n)
return retval;
}
#define MAX_LITTLENUMS 6
#define LNUM_SIZE sizeof(LITTLENUM_TYPE)
@ -808,7 +794,6 @@ md_atof (type, litP, sizeP)
return 0;
}
/*****************************************************************************
md_number_to_imm
@ -822,7 +807,6 @@ md_number_to_imm (buf, val, n)
md_number_to_chars (buf, val, n);
}
/*****************************************************************************
md_number_to_disp
@ -918,7 +902,6 @@ md_number_to_field (instrP, val, bfixP)
A table of all such "Labels" is also generated.
-AKA, -AKB, -AKC, -ASA, -ASB, -AMC, -ACA:
Select the 80960 architecture. Instructions or features not
supported by the selected architecture cause fatal errors.
@ -1264,7 +1247,6 @@ cobr_fmt (arg, opcode, oP)
instr |= (regop.n << 14) | regop.special;
}
if (n < 3)
{
emit (instr);
@ -1293,7 +1275,6 @@ cobr_fmt (arg, opcode, oP)
}
} /* cobr_fmt() */
/*****************************************************************************
ctrl_fmt: generate a CTRL-format instruction
@ -1309,7 +1290,6 @@ ctrl_fmt (targP, opcode, num_ops)
* how often the branch is taken
*/
if (num_ops == 0)
{
emit (opcode); /* Output opcode */
@ -1339,7 +1319,6 @@ ctrl_fmt (targP, opcode, num_ops)
}
/*****************************************************************************
emit: output instruction binary
@ -1359,7 +1338,6 @@ emit (instr)
return toP;
}
/*****************************************************************************
get_args: break individual arguments out of comma-separated list
@ -1439,7 +1417,6 @@ get_args (p, args)
return n;
}
/*****************************************************************************
get_cdisp: handle displacement for a COBR or CTRL instruction.
@ -1529,7 +1506,6 @@ get_cdisp (dispP, ifmtP, instr, numbits, var_frag, callj)
}
}
/*****************************************************************************
get_ispec: parse a memory operand for an index specification
@ -1600,7 +1576,6 @@ get_regnum (regname)
return (rP == NULL) ? -1 : *rP;
}
/*****************************************************************************
i_scan: perform lexical scan of ascii assembler instruction.
@ -1652,7 +1627,6 @@ i_scan (iP, args)
return (get_args (iP, args));
} /* i_scan() */
/*****************************************************************************
mem_fmt: generate a MEMA- or MEMB-format instruction
@ -1771,7 +1745,6 @@ mem_fmt (args, oP, callx)
}
} /* memfmt() */
/*****************************************************************************
mema_to_memb: convert a MEMA-format opcode to a MEMB-format opcode.
@ -1804,7 +1777,6 @@ mema_to_memb (opcodeP)
md_number_to_chars (opcodeP, opcode, 4);
} /* mema_to_memb() */
/*****************************************************************************
parse_expr: parse an expression
@ -1858,7 +1830,6 @@ parse_expr (textP, expP)
}
}
/*****************************************************************************
parse_ldcont:
Parse and replace a 'ldconst' pseudo-instruction with an appropriate
@ -1885,7 +1856,6 @@ parse_ldconst (arg)
static char buf2[5]; /* Literal for second operand */
expressionS e; /* Parsed expression */
arg[3] = NULL; /* So we can tell at the end if it got used or not */
parse_expr (arg[1], &e);
@ -2020,7 +1990,6 @@ parse_memop (memP, argP, optype)
16 /* MEM16 */
};
iprel_flag = mode = 0;
/* Any index present? */
@ -2358,7 +2327,6 @@ reg_fmt (args, oP)
struct regop regop; /* Description of register operand */
int n_ops; /* Number of operands */
instr = oP->opcode;
n_ops = oP->num_ops;
@ -2425,7 +2393,6 @@ reg_fmt (args, oP)
emit (instr);
}
/*****************************************************************************
relax_cobr:
Replace cobr instruction in a code fragment with equivalent branch and
@ -2512,7 +2479,6 @@ relax_cobr (fragP)
frag_wane (fragP);
}
/*****************************************************************************
reloc_callj: Relocate a 'callj' instruction
@ -2580,7 +2546,6 @@ reloc_callj (fixP)
/* else Symbol is neither a sysproc nor a leafproc */
}
/*****************************************************************************
s_leafproc: process .leafproc pseudo-op
@ -2644,7 +2609,6 @@ s_leafproc (n_ops, args)
} /* if only one arg, or the args are the same */
}
/*
s_sysproc: process .sysproc pseudo-op
@ -2692,7 +2656,6 @@ s_sysproc (n_ops, args)
TC_S_FORCE_TO_SYSPROC (symP);
}
/*****************************************************************************
shift_ok:
Determine if a "shlo" instruction can be used to implement a "ldconst".
@ -2729,7 +2692,6 @@ shift_ok (n)
return shift;
}
/* syntax: issue syntax error */
static void
@ -2738,7 +2700,6 @@ syntax ()
as_bad (_("syntax error"));
} /* syntax() */
/* targ_has_sfr:
Return TRUE iff the target architecture supports the specified
@ -2764,7 +2725,6 @@ targ_has_sfr (n)
}
}
/* targ_has_iclass:
Return TRUE iff the target architecture supports the indicated

View file

@ -563,7 +563,6 @@ const pseudo_typeS md_pseudo_table[] =
{0, 0, 0}
};
/* The mote pseudo ops are put into the opcode table, since they
don't start with a . they look like opcodes to gas.
*/