Commit 892ecf92 by Richard Henderson Committed by Richard Henderson

gensupport.c (collect_insn_data): Record the maximum number of alternatives, not the last seen.

        * gensupport.c (collect_insn_data): Record the maximum number
        of alternatives, not the last seen.

From-SVN: r34206
parent d96a2fcd
2000-05-27 Richard Henderson <rth@cygnus.com>
* gensupport.c (collect_insn_data): Record the maximum number
of alternatives, not the last seen.
* genoutput.c: Don't include errors.h.
(struct data): Add lineno member.
(have_error): New.
......@@ -415,7 +415,8 @@ collect_insn_data (pattern, palt, pmax)
switch (code)
{
case MATCH_OPERAND:
*palt = n_alternatives (XSTR (pattern, 2));
i = n_alternatives (XSTR (pattern, 2));
*palt = (i > *palt ? i : *palt);
/* FALLTHRU */
case MATCH_OPERATOR:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment