From: Richard Henderson Date: Sat, 27 May 2000 20:03:31 +0000 (-0700) Subject: gensupport.c (collect_insn_data): Record the maximum number of alternatives, not... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=892ecf921f5bb5af0e03290433dc2e7dce487ff7;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99e865bcd1a..74b7cb3eb0e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2000-05-27 Richard Henderson + * 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. diff --git a/gcc/gensupport.c b/gcc/gensupport.c index b475523f472..f25b80026eb 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: