diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2003-01-20 22:49:33 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2003-01-20 22:49:33 +0000 |
commit | d530b07f81e389fde99a626460ea3b33a34b9a83 (patch) | |
tree | b8f0db7c6102956eac7f0555ee5da12ff3a431d0 /gcc/genattr.c | |
parent | 351df80413984221416167a2e0c6e28732bffb4d (diff) | |
download | gcc-d530b07f81e389fde99a626460ea3b33a34b9a83.tar.gz |
genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
* genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
* genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
* genattr.c (main): Output default definition of AUTOMATON_ALTS.
Wrap up definition `insn_alts'.
* genattrtab.c (main): Wrap up `insn_alts'.
From-SVN: r61513
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index 72d13f59826..9f512a7ce9f 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -361,6 +361,9 @@ main (argc, argv) /* Output interface for pipeline hazards recognition based on DFA (deterministic finite state automata. */ printf ("\n/* DFA based pipeline interface. */"); + printf ("\n#ifndef AUTOMATON_ALTS\n"); + printf ("#define AUTOMATON_ALTS 0\n"); + printf ("#endif\n\n"); printf ("\n#ifndef AUTOMATON_STATE_ALTS\n"); printf ("#define AUTOMATON_STATE_ALTS 0\n"); printf ("#endif\n\n"); @@ -384,10 +387,12 @@ main (argc, argv) printf (" Use the function if bypass_p returns nonzero for\n"); printf (" the 1st insn. */\n"); printf ("extern int insn_latency PARAMS ((rtx, rtx));\n\n"); + printf ("\n#if AUTOMATON_ALTS\n"); printf ("/* The following function returns number of alternative\n"); printf (" reservations of given insn. It may be used for better\n"); printf (" insns scheduling heuristics. */\n"); printf ("extern int insn_alts PARAMS ((rtx));\n\n"); + 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"); |