2009-05-29 Tristan Gingold <gingold@adacore.com>
* ia64-gen.c (parse_resource_users, print_dependency_table, add_dis_table_ent, finish_distable, insert_bit_table_ent, add_dis_entry, compact_distree, gen_dis_table, completer_entries_eq, get_prefix_len, compute_completer_bits, insert_opcode_dependencies, insert_completer_entry, print_completer_entry, print_completer_table, opcodes_eq, add_opcode_entry, shrink): Use ISO C syntax for functions.
This commit is contained in:
parent
492e2b8b08
commit
3164099e4f
@ -1,3 +1,12 @@
|
|||||||
|
2009-06-02 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* ia64-gen.c (parse_resource_users, print_dependency_table,
|
||||||
|
add_dis_table_ent, finish_distable, insert_bit_table_ent,
|
||||||
|
add_dis_entry, compact_distree, gen_dis_table, completer_entries_eq,
|
||||||
|
get_prefix_len, compute_completer_bits, insert_opcode_dependencies,
|
||||||
|
insert_completer_entry, print_completer_entry, print_completer_table,
|
||||||
|
opcodes_eq, add_opcode_entry, shrink): Use ISO C syntax for functions.
|
||||||
|
|
||||||
2009-05-28 DJ Delorie <dj@redhat.com>
|
2009-05-28 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
* mep-asm.c: Regenerate.
|
* mep-asm.c: Regenerate.
|
||||||
|
@ -694,11 +694,8 @@ load_insn_classes (void)
|
|||||||
|
|
||||||
/* Extract the insn classes from the given line. */
|
/* Extract the insn classes from the given line. */
|
||||||
static void
|
static void
|
||||||
parse_resource_users (ref, usersp, nusersp, notesp)
|
parse_resource_users (const char *ref, int **usersp, int *nusersp,
|
||||||
const char *ref;
|
int **notesp)
|
||||||
int **usersp;
|
|
||||||
int *nusersp;
|
|
||||||
int **notesp;
|
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
char *line = xstrdup (ref);
|
char *line = xstrdup (ref);
|
||||||
@ -1504,7 +1501,7 @@ lookup_specifier (const char *name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_dependency_table ()
|
print_dependency_table (void)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
@ -1726,11 +1723,8 @@ make_bittree_entry (void)
|
|||||||
|
|
||||||
|
|
||||||
static struct disent *
|
static struct disent *
|
||||||
add_dis_table_ent (which, insn, order, completer_index)
|
add_dis_table_ent (struct disent *which, int insn, int order,
|
||||||
struct disent *which;
|
int completer_index)
|
||||||
int insn;
|
|
||||||
int order;
|
|
||||||
int completer_index;
|
|
||||||
{
|
{
|
||||||
int ci = 0;
|
int ci = 0;
|
||||||
struct disent *ent;
|
struct disent *ent;
|
||||||
@ -1767,7 +1761,7 @@ add_dis_table_ent (which, insn, order, completer_index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
finish_distable ()
|
finish_distable (void)
|
||||||
{
|
{
|
||||||
struct disent *ent = disinsntable;
|
struct disent *ent = disinsntable;
|
||||||
struct disent *prev = ent;
|
struct disent *prev = ent;
|
||||||
@ -1781,15 +1775,9 @@ finish_distable ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
insert_bit_table_ent (curr_ent, bit, opcode, mask,
|
insert_bit_table_ent (struct bittree *curr_ent, int bit, ia64_insn opcode,
|
||||||
opcodenum, order, completer_index)
|
ia64_insn mask, int opcodenum, int order,
|
||||||
struct bittree *curr_ent;
|
int completer_index)
|
||||||
int bit;
|
|
||||||
ia64_insn opcode;
|
|
||||||
ia64_insn mask;
|
|
||||||
int opcodenum;
|
|
||||||
int order;
|
|
||||||
int completer_index;
|
|
||||||
{
|
{
|
||||||
ia64_insn m;
|
ia64_insn m;
|
||||||
int b;
|
int b;
|
||||||
@ -1822,13 +1810,8 @@ insert_bit_table_ent (curr_ent, bit, opcode, mask,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_dis_entry (first, opcode, mask, opcodenum, ent, completer_index)
|
add_dis_entry (struct bittree *first, ia64_insn opcode, ia64_insn mask,
|
||||||
struct bittree *first;
|
int opcodenum, struct completer_entry *ent, int completer_index)
|
||||||
ia64_insn opcode;
|
|
||||||
ia64_insn mask;
|
|
||||||
int opcodenum;
|
|
||||||
struct completer_entry *ent;
|
|
||||||
int completer_index;
|
|
||||||
{
|
{
|
||||||
if (completer_index & (1 << 20))
|
if (completer_index & (1 << 20))
|
||||||
abort ();
|
abort ();
|
||||||
@ -1852,8 +1835,7 @@ add_dis_entry (first, opcode, mask, opcodenum, ent, completer_index)
|
|||||||
|
|
||||||
/* This optimization pass combines multiple "don't care" nodes. */
|
/* This optimization pass combines multiple "don't care" nodes. */
|
||||||
static void
|
static void
|
||||||
compact_distree (ent)
|
compact_distree (struct bittree *ent)
|
||||||
struct bittree *ent;
|
|
||||||
{
|
{
|
||||||
#define IS_SKIP(ent) \
|
#define IS_SKIP(ent) \
|
||||||
((ent->bits[2] !=NULL) \
|
((ent->bits[2] !=NULL) \
|
||||||
@ -1904,8 +1886,7 @@ static int tot_insn_list_len = 0;
|
|||||||
/* Generate the disassembler state machine corresponding to the tree
|
/* Generate the disassembler state machine corresponding to the tree
|
||||||
in ENT. */
|
in ENT. */
|
||||||
static void
|
static void
|
||||||
gen_dis_table (ent)
|
gen_dis_table (struct bittree *ent)
|
||||||
struct bittree *ent;
|
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
int our_offset = insn_list_len;
|
int our_offset = insn_list_len;
|
||||||
@ -2229,8 +2210,8 @@ static int glisttotlen = 0;
|
|||||||
/* If the completer trees ENT1 and ENT2 are equal, return 1. */
|
/* If the completer trees ENT1 and ENT2 are equal, return 1. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
completer_entries_eq (ent1, ent2)
|
completer_entries_eq (struct completer_entry *ent1,
|
||||||
struct completer_entry *ent1, *ent2;
|
struct completer_entry *ent2)
|
||||||
{
|
{
|
||||||
while (ent1 != NULL && ent2 != NULL)
|
while (ent1 != NULL && ent2 != NULL)
|
||||||
{
|
{
|
||||||
@ -2347,8 +2328,7 @@ insert_gclist (struct completer_entry *ent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
get_prefix_len (name)
|
get_prefix_len (const char *name)
|
||||||
const char *name;
|
|
||||||
{
|
{
|
||||||
char *c;
|
char *c;
|
||||||
|
|
||||||
@ -2363,9 +2343,7 @@ get_prefix_len (name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
compute_completer_bits (ment, ent)
|
compute_completer_bits (struct main_entry *ment, struct completer_entry *ent)
|
||||||
struct main_entry *ment;
|
|
||||||
struct completer_entry *ent;
|
|
||||||
{
|
{
|
||||||
while (ent != NULL)
|
while (ent != NULL)
|
||||||
{
|
{
|
||||||
@ -2438,9 +2416,8 @@ collapse_redundant_completers (void)
|
|||||||
2) all resources which must be marked in use when this opcode is used
|
2) all resources which must be marked in use when this opcode is used
|
||||||
(regs). */
|
(regs). */
|
||||||
static int
|
static int
|
||||||
insert_opcode_dependencies (opc, cmp)
|
insert_opcode_dependencies (struct ia64_opcode *opc,
|
||||||
struct ia64_opcode *opc;
|
struct completer_entry *cmp ATTRIBUTE_UNUSED)
|
||||||
struct completer_entry *cmp ATTRIBUTE_UNUSED;
|
|
||||||
{
|
{
|
||||||
/* Note all resources which point to this opcode. rfi has the most chks
|
/* Note all resources which point to this opcode. rfi has the most chks
|
||||||
(79) and cmpxchng has the most regs (54) so 100 here should be enough. */
|
(79) and cmpxchng has the most regs (54) so 100 here should be enough. */
|
||||||
@ -2525,10 +2502,8 @@ insert_opcode_dependencies (opc, cmp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
insert_completer_entry (opc, tabent, order)
|
insert_completer_entry (struct ia64_opcode *opc, struct main_entry *tabent,
|
||||||
struct ia64_opcode *opc;
|
int order)
|
||||||
struct main_entry *tabent;
|
|
||||||
int order;
|
|
||||||
{
|
{
|
||||||
struct completer_entry **ptr = &tabent->completers;
|
struct completer_entry **ptr = &tabent->completers;
|
||||||
struct completer_entry *parent = NULL;
|
struct completer_entry *parent = NULL;
|
||||||
@ -2599,8 +2574,7 @@ insert_completer_entry (opc, tabent, order)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_completer_entry (ent)
|
print_completer_entry (struct completer_entry *ent)
|
||||||
struct completer_entry *ent;
|
|
||||||
{
|
{
|
||||||
int moffset = 0;
|
int moffset = 0;
|
||||||
ia64_insn mask = ent->mask, bits = ent->bits;
|
ia64_insn mask = ent->mask, bits = ent->bits;
|
||||||
@ -2630,7 +2604,7 @@ print_completer_entry (ent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_completer_table ()
|
print_completer_table (void)
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
|
|
||||||
@ -2641,9 +2615,7 @@ print_completer_table ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
opcodes_eq (opc1, opc2)
|
opcodes_eq (struct ia64_opcode *opc1, struct ia64_opcode *opc2)
|
||||||
struct ia64_opcode *opc1;
|
|
||||||
struct ia64_opcode *opc2;
|
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
int plen1, plen2;
|
int plen1, plen2;
|
||||||
@ -2667,8 +2639,7 @@ opcodes_eq (opc1, opc2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_opcode_entry (opc)
|
add_opcode_entry (struct ia64_opcode *opc)
|
||||||
struct ia64_opcode *opc;
|
|
||||||
{
|
{
|
||||||
struct main_entry **place;
|
struct main_entry **place;
|
||||||
struct string_entry *name;
|
struct string_entry *name;
|
||||||
@ -2755,8 +2726,7 @@ print_main_table (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
shrink (table)
|
shrink (struct ia64_opcode *table)
|
||||||
struct ia64_opcode *table;
|
|
||||||
{
|
{
|
||||||
int curr_opcode;
|
int curr_opcode;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user