mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 17:59:47 +08:00
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
@ -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…
Reference in New Issue
Block a user