From 5f2f0edd8e6bdc48ee5f2383a87e91c301cf286a Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Mon, 23 Jan 2006 15:15:42 +0000 Subject: r110126@banpei: zack | 2006-01-22 14:47:42 -0800 r110126@banpei: zack | 2006-01-22 14:47:42 -0800 * genautomata.c (process_state_longest_path, max_dfa_issue_rate) (output_dfa_max_issue_rate, locked_states_num): Delete. (struct automaton): Add locked_states field. (output_dead_lock_vect): Save number of locked states in automaton->locked_states. If it is zero, don't print anything. (output_max_insn_queue_index_def): Define max_insn_queue_index const. (output_internal_dead_lock_func): Only test the dead_lock_vect for automata that have locked states. (output_statistics): Always print the number of locked states for each automaton. Calculate total number of locked states here. (write_automata): Don't call output_dfa_max_issue_rate. * genattrtab.c: Define length_unit_log as a const variable. * genattr.c: Don't emit MAX_DFA_ISSUE_RATE. Declare max_insn_queue_index const. * final.c (length_unit_log): Declare const. * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE. From-SVN: r110122 --- gcc/genattr.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'gcc/genattr.c') diff --git a/gcc/genattr.c b/gcc/genattr.c index 7d6d50f..03a00c5 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -174,13 +174,6 @@ main (int argc, char **argv) printf ("#define CPU_UNITS_QUERY 0\n"); printf ("#endif\n\n"); /* Interface itself: */ - printf ("extern int max_dfa_issue_rate;\n\n"); - printf ("/* The following macro value is calculated from the\n"); - printf (" automaton based pipeline description and is equal to\n"); - printf (" maximal number of all insns described in constructions\n"); - printf (" `define_insn_reservation' which can be issued on the\n"); - printf (" same processor cycle. */\n"); - printf ("#define MAX_DFA_ISSUE_RATE max_dfa_issue_rate\n\n"); printf ("/* Insn latency time defined in define_insn_reservation. */\n"); printf ("extern int insn_default_latency (rtx);\n\n"); printf ("/* Return nonzero if there is a bypass for given insn\n"); @@ -198,7 +191,7 @@ main (int argc, char **argv) printf ("#endif\n\n"); printf ("/* Maximal possible number of insns waiting results being\n"); printf (" produced by insns whose execution is not finished. */\n"); - printf ("extern int max_insn_queue_index;\n\n"); + printf ("extern const int max_insn_queue_index;\n\n"); printf ("/* Pointer to data describing current state of DFA. */\n"); printf ("typedef void *state_t;\n\n"); printf ("/* Size of the data in bytes. */\n"); -- cgit v1.1