2000-12-05 Kazu Hirata <kazu@hxi.com>
* config/tc-mips.c: Fix formatting.
This commit is contained in:
parent
8157b96704
commit
beae10d5eb
|
@ -1,3 +1,7 @@
|
||||||
|
2000-12-05 Kazu Hirata <kazu@hxi.com>
|
||||||
|
|
||||||
|
* config/tc-mips.c: Fix formatting.
|
||||||
|
|
||||||
2000-12-04 Matthew Hiller <hiller@redhat.com>
|
2000-12-04 Matthew Hiller <hiller@redhat.com>
|
||||||
|
|
||||||
* config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
|
* config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
|
||||||
|
|
|
@ -110,6 +110,7 @@ extern int target_big_endian;
|
||||||
static int mips_64;
|
static int mips_64;
|
||||||
|
|
||||||
/* The default target format to use. */
|
/* The default target format to use. */
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
mips_target_format ()
|
mips_target_format ()
|
||||||
{
|
{
|
||||||
|
@ -152,8 +153,7 @@ mips_target_format ()
|
||||||
pseudo-op. We use a struct so that .set push and .set pop are more
|
pseudo-op. We use a struct so that .set push and .set pop are more
|
||||||
reliable. */
|
reliable. */
|
||||||
|
|
||||||
struct mips_set_options
|
struct mips_set_options {
|
||||||
{
|
|
||||||
/* MIPS ISA (Instruction Set Architecture) level. This is set to -1
|
/* MIPS ISA (Instruction Set Architecture) level. This is set to -1
|
||||||
if it has not been initialized. Changed by `.set mipsN', and the
|
if it has not been initialized. Changed by `.set mipsN', and the
|
||||||
-mipsN command line option, and the default CPU. */
|
-mipsN command line option, and the default CPU. */
|
||||||
|
@ -190,8 +190,7 @@ struct mips_set_options
|
||||||
that we must set the isa field to ISA_UNKNOWN and the mips16 field to
|
that we must set the isa field to ISA_UNKNOWN and the mips16 field to
|
||||||
-1 to indicate that they have not been initialized. */
|
-1 to indicate that they have not been initialized. */
|
||||||
|
|
||||||
static struct mips_set_options mips_opts =
|
static struct mips_set_options mips_opts = {
|
||||||
{
|
|
||||||
ISA_UNKNOWN, -1, 0, 0, 0, 0, 0, 0
|
ISA_UNKNOWN, -1, 0, 0, 0, 0, 0, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -290,8 +289,7 @@ static int mips_gp32 = 0;
|
||||||
|
|
||||||
/* MIPS PIC level. */
|
/* MIPS PIC level. */
|
||||||
|
|
||||||
enum mips_pic_level
|
enum mips_pic_level {
|
||||||
{
|
|
||||||
/* Do not generate PIC code. */
|
/* Do not generate PIC code. */
|
||||||
NO_PIC,
|
NO_PIC,
|
||||||
|
|
||||||
|
@ -485,8 +483,7 @@ static int prev_nop_frag_since;
|
||||||
relocation. We then sort them so that they immediately precede the
|
relocation. We then sort them so that they immediately precede the
|
||||||
corresponding LO relocation. */
|
corresponding LO relocation. */
|
||||||
|
|
||||||
struct mips_hi_fixup
|
struct mips_hi_fixup {
|
||||||
{
|
|
||||||
/* Next HI fixup. */
|
/* Next HI fixup. */
|
||||||
struct mips_hi_fixup *next;
|
struct mips_hi_fixup *next;
|
||||||
/* This fixup. */
|
/* This fixup. */
|
||||||
|
@ -502,8 +499,7 @@ static struct mips_hi_fixup *mips_hi_fixup_list;
|
||||||
/* Map normal MIPS register numbers to mips16 register numbers. */
|
/* Map normal MIPS register numbers to mips16 register numbers. */
|
||||||
|
|
||||||
#define X ILLEGAL_REG
|
#define X ILLEGAL_REG
|
||||||
static const int mips32_to_16_reg_map[] =
|
static const int mips32_to_16_reg_map[] = {
|
||||||
{
|
|
||||||
X, X, 2, 3, 4, 5, 6, 7,
|
X, X, 2, 3, 4, 5, 6, 7,
|
||||||
X, X, X, X, X, X, X, X,
|
X, X, X, X, X, X, X, X,
|
||||||
0, 1, X, X, X, X, X, X,
|
0, 1, X, X, X, X, X, X,
|
||||||
|
@ -513,8 +509,7 @@ static const int mips32_to_16_reg_map[] =
|
||||||
|
|
||||||
/* Map mips16 register numbers to normal MIPS register numbers. */
|
/* Map mips16 register numbers to normal MIPS register numbers. */
|
||||||
|
|
||||||
static const unsigned int mips16_to_32_reg_map[] =
|
static const unsigned int mips16_to_32_reg_map[] = {
|
||||||
{
|
|
||||||
16, 17, 2, 3, 4, 5, 6, 7
|
16, 17, 2, 3, 4, 5, 6, 7
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -718,8 +713,7 @@ static int validate_mips_insn PARAMS ((const struct mips_opcode *));
|
||||||
/* Table and functions used to map between CPU/ISA names, and
|
/* Table and functions used to map between CPU/ISA names, and
|
||||||
ISA levels, and CPU numbers. */
|
ISA levels, and CPU numbers. */
|
||||||
|
|
||||||
struct mips_cpu_info
|
struct mips_cpu_info {
|
||||||
{
|
|
||||||
const char *name; /* CPU or ISA name. */
|
const char *name; /* CPU or ISA name. */
|
||||||
int is_isa; /* Is this an ISA? (If 0, a CPU.) */
|
int is_isa; /* Is this an ISA? (If 0, a CPU.) */
|
||||||
int isa; /* ISA level. */
|
int isa; /* ISA level. */
|
||||||
|
@ -748,8 +742,7 @@ static const struct mips_cpu_info *mips_cpu_info_from_cpu PARAMS ((int));
|
||||||
they are not currently supported: .asm0, .endr, .lab, .repeat,
|
they are not currently supported: .asm0, .endr, .lab, .repeat,
|
||||||
.struct. */
|
.struct. */
|
||||||
|
|
||||||
static const pseudo_typeS mips_pseudo_table[] =
|
static const pseudo_typeS mips_pseudo_table[] = {
|
||||||
{
|
|
||||||
/* MIPS specific pseudo-ops. */
|
/* MIPS specific pseudo-ops. */
|
||||||
{"option", s_option, 0},
|
{"option", s_option, 0},
|
||||||
{"set", s_mipsset, 0},
|
{"set", s_mipsset, 0},
|
||||||
|
@ -823,8 +816,7 @@ mips_pop_insert ()
|
||||||
|
|
||||||
/* Symbols labelling the current insn. */
|
/* Symbols labelling the current insn. */
|
||||||
|
|
||||||
struct insn_label_list
|
struct insn_label_list {
|
||||||
{
|
|
||||||
struct insn_label_list *next;
|
struct insn_label_list *next;
|
||||||
symbolS *label;
|
symbolS *label;
|
||||||
};
|
};
|
||||||
|
@ -3094,7 +3086,8 @@ load_register (counter, reg, ep, dbl)
|
||||||
| (lo32.X_add_number >> shift));
|
| (lo32.X_add_number >> shift));
|
||||||
else
|
else
|
||||||
tmp.X_add_number = hi32.X_add_number >> (shift - 32);
|
tmp.X_add_number = hi32.X_add_number >> (shift - 32);
|
||||||
macro_build ((char *) NULL, counter, &tmp, "ori", "t,r,i", reg, 0,
|
macro_build ((char *) NULL, counter, &tmp,
|
||||||
|
"ori", "t,r,i", reg, 0,
|
||||||
(int) BFD_RELOC_LO16);
|
(int) BFD_RELOC_LO16);
|
||||||
macro_build ((char *) NULL, counter, NULL,
|
macro_build ((char *) NULL, counter, NULL,
|
||||||
(shift >= 32) ? "dsll32" : "dsll",
|
(shift >= 32) ? "dsll32" : "dsll",
|
||||||
|
@ -3103,7 +3096,8 @@ load_register (counter, reg, ep, dbl)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
shift++;
|
shift++;
|
||||||
} while (shift <= (64 - 16));
|
}
|
||||||
|
while (shift <= (64 - 16));
|
||||||
|
|
||||||
/* Find the bit number of the lowest one bit, and store the
|
/* Find the bit number of the lowest one bit, and store the
|
||||||
shifted value in hi/lo. */
|
shifted value in hi/lo. */
|
||||||
|
@ -8467,8 +8461,7 @@ mips16_ip (str, ip)
|
||||||
/* This structure holds information we know about a mips16 immediate
|
/* This structure holds information we know about a mips16 immediate
|
||||||
argument type. */
|
argument type. */
|
||||||
|
|
||||||
struct mips16_immed_operand
|
struct mips16_immed_operand {
|
||||||
{
|
|
||||||
/* The type code used in the argument string in the opcode table. */
|
/* The type code used in the argument string in the opcode table. */
|
||||||
int type;
|
int type;
|
||||||
/* The number of bits in the short form of the opcode. */
|
/* The number of bits in the short form of the opcode. */
|
||||||
|
@ -8583,7 +8576,8 @@ mips16_immed (file, line, type, val, warn, small, ext, insn, use_extend,
|
||||||
needext = false;
|
needext = false;
|
||||||
|
|
||||||
if (warn && ext && ! needext)
|
if (warn && ext && ! needext)
|
||||||
as_warn_where (file, line, _("extended operand requested but not required"));
|
as_warn_where (file, line,
|
||||||
|
_("extended operand requested but not required"));
|
||||||
if (small && needext)
|
if (small && needext)
|
||||||
as_bad_where (file, line, _("invalid unextended operand value"));
|
as_bad_where (file, line, _("invalid unextended operand value"));
|
||||||
|
|
||||||
|
@ -8825,8 +8819,7 @@ md_number_to_chars (buf, val, n)
|
||||||
|
|
||||||
CONST char *md_shortopts = "O::g::G:";
|
CONST char *md_shortopts = "O::g::G:";
|
||||||
|
|
||||||
struct option md_longopts[] =
|
struct option md_longopts[] = {
|
||||||
{
|
|
||||||
#define OPTION_MIPS1 (OPTION_MD_BASE + 1)
|
#define OPTION_MIPS1 (OPTION_MD_BASE + 1)
|
||||||
{"mips0", no_argument, NULL, OPTION_MIPS1},
|
{"mips0", no_argument, NULL, OPTION_MIPS1},
|
||||||
{"mips1", no_argument, NULL, OPTION_MIPS1},
|
{"mips1", no_argument, NULL, OPTION_MIPS1},
|
||||||
|
@ -9138,13 +9131,17 @@ md_parse_option (c, arg)
|
||||||
gcc, but to set this flag before gcc is built with such
|
gcc, but to set this flag before gcc is built with such
|
||||||
multilibs will break too many systems. */
|
multilibs will break too many systems. */
|
||||||
|
|
||||||
/* mips_32bitmode = 1; */
|
#if 0
|
||||||
|
mips_32bitmode = 1;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OPTION_GP64:
|
case OPTION_GP64:
|
||||||
mips_gp32 = 0;
|
mips_gp32 = 0;
|
||||||
mips_64 = 1;
|
mips_64 = 1;
|
||||||
/* mips_32bitmode = 0; */
|
#if 0
|
||||||
|
mips_32bitmode = 0;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OPTION_MABI:
|
case OPTION_MABI:
|
||||||
|
@ -9452,7 +9449,6 @@ mips_frob_file ()
|
||||||
relocations, in case the linker has to relax a call. We also need
|
relocations, in case the linker has to relax a call. We also need
|
||||||
to keep relocations for switch table entries. */
|
to keep relocations for switch table entries. */
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
mips_force_relocation (fixp)
|
mips_force_relocation (fixp)
|
||||||
fixS *fixp;
|
fixS *fixp;
|
||||||
|
@ -10162,8 +10158,7 @@ s_option (x)
|
||||||
|
|
||||||
/* This structure is used to hold a stack of .set values. */
|
/* This structure is used to hold a stack of .set values. */
|
||||||
|
|
||||||
struct mips_option_stack
|
struct mips_option_stack {
|
||||||
{
|
|
||||||
struct mips_option_stack *next;
|
struct mips_option_stack *next;
|
||||||
struct mips_set_options options;
|
struct mips_set_options options;
|
||||||
};
|
};
|
||||||
|
@ -10921,7 +10916,6 @@ mips16_extended_frag (fragp, sec, stretch)
|
||||||
encoded in the subtype information. For the mips16, we have to
|
encoded in the subtype information. For the mips16, we have to
|
||||||
decide whether we are using an extended opcode or not. */
|
decide whether we are using an extended opcode or not. */
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
int
|
int
|
||||||
md_estimate_size_before_relax (fragp, segtype)
|
md_estimate_size_before_relax (fragp, segtype)
|
||||||
fragS *fragp;
|
fragS *fragp;
|
||||||
|
@ -11529,8 +11523,7 @@ mips_elf_final_processing ()
|
||||||
|
|
||||||
#endif /* OBJ_ELF || OBJ_MAYBE_ELF */
|
#endif /* OBJ_ELF || OBJ_MAYBE_ELF */
|
||||||
|
|
||||||
typedef struct proc
|
typedef struct proc {
|
||||||
{
|
|
||||||
symbolS *isym;
|
symbolS *isym;
|
||||||
unsigned long reg_mask;
|
unsigned long reg_mask;
|
||||||
unsigned long reg_offset;
|
unsigned long reg_offset;
|
||||||
|
@ -11539,8 +11532,7 @@ typedef struct proc
|
||||||
unsigned long frame_offset;
|
unsigned long frame_offset;
|
||||||
unsigned long frame_reg;
|
unsigned long frame_reg;
|
||||||
unsigned long pc_reg;
|
unsigned long pc_reg;
|
||||||
}
|
} procS;
|
||||||
procS;
|
|
||||||
|
|
||||||
static procS cur_proc;
|
static procS cur_proc;
|
||||||
static procS *cur_proc_ptr;
|
static procS *cur_proc_ptr;
|
||||||
|
@ -11720,7 +11712,7 @@ s_mips_end (x)
|
||||||
assert (pdr_seg);
|
assert (pdr_seg);
|
||||||
subseg_set (pdr_seg, 0);
|
subseg_set (pdr_seg, 0);
|
||||||
|
|
||||||
/* Write the symbol */
|
/* Write the symbol. */
|
||||||
exp.X_op = O_symbol;
|
exp.X_op = O_symbol;
|
||||||
exp.X_add_symbol = p;
|
exp.X_add_symbol = p;
|
||||||
exp.X_add_number = 0;
|
exp.X_add_number = 0;
|
||||||
|
@ -11916,8 +11908,7 @@ s_loc (x)
|
||||||
|
|
||||||
Case is ignored in comparison, so put the canonical entry in the
|
Case is ignored in comparison, so put the canonical entry in the
|
||||||
appropriate case but everything else in lower case to ease eye pain. */
|
appropriate case but everything else in lower case to ease eye pain. */
|
||||||
static const struct mips_cpu_info mips_cpu_info_table[] =
|
static const struct mips_cpu_info mips_cpu_info_table[] = {
|
||||||
{
|
|
||||||
/* MIPS1 ISA */
|
/* MIPS1 ISA */
|
||||||
{ "MIPS1", 1, ISA_MIPS1, CPU_R3000, },
|
{ "MIPS1", 1, ISA_MIPS1, CPU_R3000, },
|
||||||
{ "mips", 1, ISA_MIPS1, CPU_R3000, },
|
{ "mips", 1, ISA_MIPS1, CPU_R3000, },
|
||||||
|
|
Loading…
Reference in New Issue