forked from Imagelibrary/binutils-gdb
Fix formatting
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
* cgen.h: Fix formatting.
|
* cgen.h: Fix formatting.
|
||||||
* input-scrub.c: Fix formatting.
|
* input-scrub.c: Fix formatting.
|
||||||
* macro.c: Fix formatting.
|
* macro.c: Fix formatting.
|
||||||
|
* config/tc-mips.c: Fix formatting.
|
||||||
|
|
||||||
Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
|
Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
|
||||||
|
|
||||||
|
|||||||
@@ -31,15 +31,16 @@ extern CGEN_CPU_DESC gas_cgen_cpu_desc;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Struct defining result of gas_cgen_finish_insn. */
|
/* Struct defining result of gas_cgen_finish_insn. */
|
||||||
typedef struct {
|
typedef struct
|
||||||
|
{
|
||||||
/* frag containing the insn */
|
/* frag containing the insn */
|
||||||
fragS *frag;
|
fragS * frag;
|
||||||
/* Address of insn in frag. */
|
/* Address of insn in frag. */
|
||||||
char *addr;
|
char * addr;
|
||||||
/* Number of fixups this insn has. */
|
/* Number of fixups this insn has. */
|
||||||
int num_fixups;
|
int num_fixups;
|
||||||
/* Array of fixups. */
|
/* Array of fixups. */
|
||||||
fixS *fixups[GAS_CGEN_MAX_FIXUPS];
|
fixS * fixups[GAS_CGEN_MAX_FIXUPS];
|
||||||
} finished_insnS;
|
} finished_insnS;
|
||||||
|
|
||||||
/* Callback for operand parsing.
|
/* Callback for operand parsing.
|
||||||
|
|||||||
@@ -153,7 +153,8 @@ 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,7 +191,8 @@ 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
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -207,7 +209,7 @@ static int file_mips_isa = ISA_UNKNOWN;
|
|||||||
static int mips_cpu = CPU_UNKNOWN;
|
static int mips_cpu = CPU_UNKNOWN;
|
||||||
|
|
||||||
/* The argument of the -mabi= flag. */
|
/* The argument of the -mabi= flag. */
|
||||||
static char *mips_abi_string = 0;
|
static char * mips_abi_string = 0;
|
||||||
|
|
||||||
/* Wether we should mark the file EABI64 or EABI32. */
|
/* Wether we should mark the file EABI64 or EABI32. */
|
||||||
static int mips_eabi64 = 0;
|
static int mips_eabi64 = 0;
|
||||||
@@ -289,7 +291,8 @@ 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,
|
||||||
|
|
||||||
@@ -483,7 +486,8 @@ 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. */
|
||||||
@@ -499,7 +503,8 @@ 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,
|
||||||
@@ -509,7 +514,8 @@ 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
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -713,7 +719,8 @@ 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. */
|
||||||
@@ -742,7 +749,8 @@ 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},
|
||||||
@@ -787,7 +795,8 @@ static const pseudo_typeS mips_pseudo_table[] = {
|
|||||||
{ NULL, NULL, 0 },
|
{ NULL, NULL, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const pseudo_typeS mips_nonecoff_pseudo_table[] = {
|
static const pseudo_typeS mips_nonecoff_pseudo_table[] =
|
||||||
|
{
|
||||||
/* These pseudo-ops should be defined by the object file format.
|
/* These pseudo-ops should be defined by the object file format.
|
||||||
However, a.out doesn't support them, so we have versions here. */
|
However, a.out doesn't support them, so we have versions here. */
|
||||||
{"aent", s_mips_ent, 1},
|
{"aent", s_mips_ent, 1},
|
||||||
@@ -816,7 +825,8 @@ 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;
|
||||||
};
|
};
|
||||||
@@ -1543,7 +1553,6 @@ append_insn (place, ip, address_expr, reloc_type, unmatched_hi)
|
|||||||
&& insn_uses_reg (ip, ((prev_insn.insn_opcode >> OP_SH_RD)
|
&& insn_uses_reg (ip, ((prev_insn.insn_opcode >> OP_SH_RD)
|
||||||
& OP_MASK_RD),
|
& OP_MASK_RD),
|
||||||
MIPS_GR_REG))
|
MIPS_GR_REG))
|
||||||
|
|
||||||
{
|
{
|
||||||
nops += 2;
|
nops += 2;
|
||||||
}
|
}
|
||||||
@@ -8461,7 +8470,8 @@ 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. */
|
||||||
@@ -8819,7 +8829,8 @@ 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},
|
||||||
@@ -10158,7 +10169,8 @@ 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;
|
||||||
};
|
};
|
||||||
@@ -11908,7 +11920,8 @@ 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, },
|
||||||
@@ -12060,7 +12073,7 @@ mips_cpu_info_from_name (name)
|
|||||||
if (strcasecmp (name, mips_cpu_info_table[i].name) == 0)
|
if (strcasecmp (name, mips_cpu_info_table[i].name) == 0)
|
||||||
return (&mips_cpu_info_table[i]);
|
return (&mips_cpu_info_table[i]);
|
||||||
|
|
||||||
return (NULL);
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct mips_cpu_info *
|
static const struct mips_cpu_info *
|
||||||
@@ -12074,7 +12087,7 @@ mips_cpu_info_from_isa (isa)
|
|||||||
&& isa == mips_cpu_info_table[i].isa)
|
&& isa == mips_cpu_info_table[i].isa)
|
||||||
return (&mips_cpu_info_table[i]);
|
return (&mips_cpu_info_table[i]);
|
||||||
|
|
||||||
return (NULL);
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct mips_cpu_info *
|
static const struct mips_cpu_info *
|
||||||
@@ -12088,5 +12101,5 @@ mips_cpu_info_from_cpu (cpu)
|
|||||||
&& cpu == mips_cpu_info_table[i].cpu)
|
&& cpu == mips_cpu_info_table[i].cpu)
|
||||||
return (&mips_cpu_info_table[i]);
|
return (&mips_cpu_info_table[i]);
|
||||||
|
|
||||||
return (NULL);
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -475,6 +475,7 @@ changequote([,])dnl
|
|||||||
ppc-*) bfd_gas=yes ;;
|
ppc-*) bfd_gas=yes ;;
|
||||||
sparc-*) bfd_gas=yes ;;
|
sparc-*) bfd_gas=yes ;;
|
||||||
strongarm-*) bfd_gas=yes ;;
|
strongarm-*) bfd_gas=yes ;;
|
||||||
|
xscale-*) bfd_gas=yes ;;
|
||||||
*-elf) bfd_gas=yes ;;
|
*-elf) bfd_gas=yes ;;
|
||||||
*-ecoff) bfd_gas=yes ;;
|
*-ecoff) bfd_gas=yes ;;
|
||||||
*-som) bfd_gas=yes ;;
|
*-som) bfd_gas=yes ;;
|
||||||
|
|||||||
@@ -102,22 +102,23 @@ static line_numberT physical_input_line;
|
|||||||
static int logical_input_line;
|
static int logical_input_line;
|
||||||
|
|
||||||
/* Struct used to save the state of the input handler during include files */
|
/* Struct used to save the state of the input handler during include files */
|
||||||
struct input_save {
|
struct input_save
|
||||||
char *buffer_start;
|
{
|
||||||
char *partial_where;
|
char * buffer_start;
|
||||||
|
char * partial_where;
|
||||||
int partial_size;
|
int partial_size;
|
||||||
char save_source[AFTER_SIZE];
|
char save_source[AFTER_SIZE];
|
||||||
unsigned int buffer_length;
|
unsigned int buffer_length;
|
||||||
char *physical_input_file;
|
char * physical_input_file;
|
||||||
char *logical_input_file;
|
char * logical_input_file;
|
||||||
line_numberT physical_input_line;
|
line_numberT physical_input_line;
|
||||||
int logical_input_line;
|
int logical_input_line;
|
||||||
int sb_index;
|
int sb_index;
|
||||||
sb from_sb;
|
sb from_sb;
|
||||||
int from_sb_is_expansion; /* Should we do a conditional check? */
|
int from_sb_is_expansion; /* Should we do a conditional check? */
|
||||||
struct input_save *next_saved_file; /* Chain of input_saves */
|
struct input_save * next_saved_file; /* Chain of input_saves. */
|
||||||
char *input_file_save; /* Saved state of input routines */
|
char * input_file_save; /* Saved state of input routines. */
|
||||||
char *saved_position; /* Caller's saved position in buf */
|
char * saved_position; /* Caller's saved position in buf. */
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct input_save *input_scrub_push PARAMS ((char *saved_position));
|
static struct input_save *input_scrub_push PARAMS ((char *saved_position));
|
||||||
|
|||||||
10
gas/macro.c
10
gas/macro.c
@@ -320,29 +320,29 @@ getstring (idx, in, acc)
|
|||||||
|
|
||||||
if (macro_alternate && in->ptr[idx] == '!')
|
if (macro_alternate && in->ptr[idx] == '!')
|
||||||
{
|
{
|
||||||
idx++;
|
idx ++;
|
||||||
|
|
||||||
sb_add_char (acc, in->ptr[idx]);
|
sb_add_char (acc, in->ptr[idx]);
|
||||||
|
|
||||||
idx++;
|
idx ++;
|
||||||
}
|
}
|
||||||
else if (escaped && in->ptr[idx] == tchar)
|
else if (escaped && in->ptr[idx] == tchar)
|
||||||
{
|
{
|
||||||
sb_add_char (acc, tchar);
|
sb_add_char (acc, tchar);
|
||||||
idx++;
|
idx ++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (in->ptr[idx] == tchar)
|
if (in->ptr[idx] == tchar)
|
||||||
{
|
{
|
||||||
idx++;
|
idx ++;
|
||||||
|
|
||||||
if (idx >= in->len || in->ptr[idx] != tchar)
|
if (idx >= in->len || in->ptr[idx] != tchar)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
sb_add_char (acc, in->ptr[idx]);
|
sb_add_char (acc, in->ptr[idx]);
|
||||||
idx++;
|
idx ++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user