]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/genpeep.c
*** empty log message ***
[gcc.git] / gcc / genpeep.c
index 832196f905526f12cf704d8f048e2b7fbaf88f08..eb14a69f26ba7f9fd48c161fd6b83abcb4ceb459 100644 (file)
@@ -1,5 +1,5 @@
 /* Generate code from machine description to perform peephole optimizations.
-   Copyright (C) 1987, 1989 Free Software Foundation, Inc.
+   Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -30,6 +30,7 @@ struct obstack *rtl_obstack = &obstack;
 #define obstack_chunk_free free
 
 extern void free ();
+extern rtx read_rtx ();
 
 /* While tree-walking an instruction pattern, we keep a chain
    of these `struct link's to record how to get down to the
@@ -291,7 +292,7 @@ match_rtx (x, path, fail_label)
          int j;
          printf ("  if (XVECLEN (x, %d) != %d) goto L%d;\n",
                  i, XVECLEN (x, i), fail_label);
-         for (j = XVECLEN (x, i) - 1; j >= 0; j--)
+         for (j = 0; j < XVECLEN (x, i); j++)
            {
              link.vecelt = j;
              match_rtx (XVECEXP (x, i, j), &link, fail_label);
@@ -412,7 +413,6 @@ main (argc, argv)
 {
   rtx desc;
   FILE *infile;
-  extern rtx read_rtx ();
   register int c;
 
   max_opno = -1;
This page took 0.030091 seconds and 5 git commands to generate.