aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-02-13 11:17:14 +0000
committerJeff Law <law@gcc.gnu.org>1998-02-13 04:17:14 -0700
commitb7673cdb66d14f70c2d43cf14806dd73b73c84b6 (patch)
treea7577c7698c3488486cf680caee683bbc73b217f /gcc
parent9e4767cadfeae4aa62acc370032769b1138e8331 (diff)
downloadgcc-b7673cdb66d14f70c2d43cf14806dd73b73c84b6.zip
gcc-b7673cdb66d14f70c2d43cf14806dd73b73c84b6.tar.gz
gcc-b7673cdb66d14f70c2d43cf14806dd73b73c84b6.tar.bz2
* genextract.c (main): Fix typo.
From-SVN: r17904
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/genextract.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0858958..7e9af4d 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 <robertl@dgii.com>
* c-lang.c (finish_file): Bracket declaration of static_ctors,
diff --git a/gcc/genextract.c b/gcc/genextract.c
index 3577a2f..6ebdfff 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");
}