* gensupport.c (collect_insn_data): Record the maximum number
of alternatives, not the last seen.
From-SVN: r34206
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.
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: