diff options
author | Richard Henderson <rth@cygnus.com> | 2000-05-27 13:03:31 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-05-27 13:03:31 -0700 |
commit | 892ecf921f5bb5af0e03290433dc2e7dce487ff7 (patch) | |
tree | c288b6568107b935988f476e8bb888719c947d7e /gcc/gensupport.c | |
parent | d96a2fcdf0ae6ce1a758179a6ec72ec51877420c (diff) | |
download | gcc-892ecf921f5bb5af0e03290433dc2e7dce487ff7.zip gcc-892ecf921f5bb5af0e03290433dc2e7dce487ff7.tar.gz gcc-892ecf921f5bb5af0e03290433dc2e7dce487ff7.tar.bz2 |
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
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r-- | gcc/gensupport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c index b475523..f25b800 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -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: |