summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 20:48:57 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 20:48:57 +0000
commitbd2b7f11a7e61c8ca542c00c0476d43a1b10c9b0 (patch)
tree987cc7c9ede1d064644857edd6fe98aaf2d05bd5
parent0462eca24a005fa8d6c969d1f8c4b1996e7d150e (diff)
downloadgcc-bd2b7f11a7e61c8ca542c00c0476d43a1b10c9b0.tar.gz
* genautomata.c (expand_automata): Always create a description.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45211 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/genautomata.c72
2 files changed, 38 insertions, 38 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 11395beeb8f..9fe71b8a9f1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-08-27 Richard Henderson <rth@redhat.com>
+
+ * genautomata.c (expand_automata): Always create a description.
+
2001-08-27 Geoffrey Keating <geoffk@redhat.com>
* optabs.c (expand_binop): Correctly handle the carry in multiword
diff --git a/gcc/genautomata.c b/gcc/genautomata.c
index f4fc572acdf..6da05ba5876 100644
--- a/gcc/genautomata.c
+++ b/gcc/genautomata.c
@@ -8625,48 +8625,44 @@ expand_automata ()
{
int i;
- if (VLA_PTR_LENGTH (decls) != 0)
- {
- description = create_node (sizeof (struct description)
- + sizeof (decl_t)
- /* One entry for cycle advancing insn. */
- * VLA_PTR_LENGTH (decls));
- description->decls_num = VLA_PTR_LENGTH (decls);
- description->query_units_num = 0;
- for (i = 0; i < description->decls_num; i++)
- {
- description->decls [i] = VLA_PTR (decls, i);
- if (description->decls [i]->mode == dm_unit
- && description->decls [i]->decl.unit.query_p)
- description->decls [i]->decl.unit.query_num
- = description->query_units_num++;
- }
- all_time = create_ticker ();
- check_time = create_ticker ();
- fprintf (stderr, "Check description...");
- fflush (stderr);
- check_all_description ();
- fprintf (stderr, "done\n");
- ticker_off (&check_time);
- generation_time = create_ticker ();
+ description = create_node (sizeof (struct description)
+ /* One entry for cycle advancing insn. */
+ + sizeof (decl_t) * VLA_PTR_LENGTH (decls));
+ description->decls_num = VLA_PTR_LENGTH (decls);
+ description->query_units_num = 0;
+ for (i = 0; i < description->decls_num; i++)
+ {
+ description->decls [i] = VLA_PTR (decls, i);
+ if (description->decls [i]->mode == dm_unit
+ && description->decls [i]->decl.unit.query_p)
+ description->decls [i]->decl.unit.query_num
+ = description->query_units_num++;
+ }
+ all_time = create_ticker ();
+ check_time = create_ticker ();
+ fprintf (stderr, "Check description...");
+ fflush (stderr);
+ check_all_description ();
+ fprintf (stderr, "done\n");
+ ticker_off (&check_time);
+ generation_time = create_ticker ();
+ if (!have_error)
+ {
+ generate ();
+ check_automata ();
if (!have_error)
{
- generate ();
- check_automata ();
- if (!have_error)
- {
- fprintf (stderr, "Generation of attributes...");
- fflush (stderr);
- make_internal_dfa_insn_code_attr ();
- make_insn_alts_attr ();
- make_default_insn_latency_attr ();
- make_bypass_attr ();
- fprintf (stderr, "done\n");
- }
+ fprintf (stderr, "Generation of attributes...");
+ fflush (stderr);
+ make_internal_dfa_insn_code_attr ();
+ make_insn_alts_attr ();
+ make_default_insn_latency_attr ();
+ make_bypass_attr ();
+ fprintf (stderr, "done\n");
}
- ticker_off (&generation_time);
- ticker_off (&all_time);
}
+ ticker_off (&generation_time);
+ ticker_off (&all_time);
fprintf (stderr, "All other genattrtab stuff...");
fflush (stderr);
}