diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 085895840f7..7e9af4d2b19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 * c-lang.c (finish_file): Bracket declaration of static_ctors, diff --git a/gcc/genextract.c b/gcc/genextract.c index 3577a2f67fe..6ebdfff5c59 100644 --- a/gcc/genextract.c +++ b/gcc/genextract.c @@ -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"); }