* genextract.c (main): Fix typo.
authorJeffrey A Law <law@cygnus.com>
Fri, 13 Feb 1998 11:17:14 +0000 (11:17 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 13 Feb 1998 11:17:14 +0000 (04:17 -0700)
From-SVN: r17904

gcc/ChangeLog
gcc/genextract.c

index 085895840f73cb12ac395809958e9c18b99c6c28..7e9af4d2b19e79c3caef7df73f66ca8d6f5db097 100644 (file)
@@ -1,3 +1,7 @@
+Fri Feb 13 12:18:40 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * genextract.c (main): Fix typo.
+
 Fri Feb 13 08:41:49 1998  Robert Lipe  <robertl@dgii.com>
 
        * c-lang.c (finish_file): Bracket declaration of static_ctors, 
index 3577a2f67fe4393c31f0c6c4fc911b3a690d3d61..6ebdfff5c598f16a4b692b9a7d6cfcd595ec28cb 100644 (file)
@@ -510,7 +510,7 @@ from the machine description file `md'.  */\n\n");
       /* The vector in the insn says how many operands it has.
         And all it contains are operands.  In fact, the vector was
         created just for the sake of this function.  */
-      printf ("      for (i = XVECLEN (pat, 0); i >= 0; i--)\n");
+      printf ("      for (i = XVECLEN (pat, 0) - 1; i >= 0; i--)\n");
       printf ("          ro[i] = XVECEXP (pat, 0, i);\n");
       printf ("      break;\n\n");
     }