From b7673cdb66d14f70c2d43cf14806dd73b73c84b6 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Fri, 13 Feb 1998 11:17:14 +0000 Subject: [PATCH] * genextract.c (main): Fix typo. From-SVN: r17904 --- gcc/ChangeLog | 4 ++++ gcc/genextract.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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"); }