OSDN Git Service

* genextract.c (main): Fix typo.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Feb 1998 11:17:14 +0000 (11:17 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Feb 1998 11:17:14 +0000 (11:17 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17904 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/genextract.c

index 0858958..7e9af4d 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 3577a2f..6ebdfff 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");
     }