OSDN Git Service

* gensupport.c (collect_insn_data): Record the maximum number
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 May 2000 20:03:31 +0000 (20:03 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 May 2000 20:03:31 +0000 (20:03 +0000)
        of alternatives, not the last seen.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34206 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gensupport.c

index 99e865b..74b7cb3 100644 (file)
@@ -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.
index b475523..f25b800 100644 (file)
@@ -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: