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
This commit is contained in:
parent
d96a2fcdf0
commit
892ecf921f
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
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:
|
||||
|
|
Loading…
Add table
Reference in a new issue