aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-11-15 14:12:54 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-11-15 14:12:54 -0500
commitcc38a1c3dd81d4047f980ef727ab8de6afefc691 (patch)
tree436acb10e92b8466775b8a107473c5a05ae4681b
parentec743e556bdae385832a7a92dd8e60efd41f3298 (diff)
downloadgcc-cc38a1c3dd81d4047f980ef727ab8de6afefc691.zip
gcc-cc38a1c3dd81d4047f980ef727ab8de6afefc691.tar.gz
gcc-cc38a1c3dd81d4047f980ef727ab8de6afefc691.tar.bz2
(main): Use loop, not bcopy, to set recog_operands from an rtvec.
From-SVN: r13171
-rw-r--r--gcc/genextract.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/genextract.c b/gcc/genextract.c
index 471a439..f222de1 100644
--- a/gcc/genextract.c
+++ b/gcc/genextract.c
@@ -455,6 +455,7 @@ from the machine description file `md'. */\n\n");
printf (" register rtx *ro = recog_operand;\n");
printf (" register rtx **ro_loc = recog_operand_loc;\n");
printf (" rtx pat = PATTERN (insn);\n");
+ printf (" int i;\n\n");
printf (" switch (INSN_CODE (insn))\n");
printf (" {\n");
printf (" case -1:\n");
@@ -502,11 +503,8 @@ 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 ("#if __GNUC__ > 1 && !defined (bcopy)\n");
- printf ("#define bcopy(FROM,TO,COUNT) __builtin_memcpy(TO,FROM,COUNT)\n");
- printf ("#endif\n");
- printf (" bcopy (&XVECEXP (pat, 0, 0), ro,\n");
- printf (" sizeof (rtx) * XVECLEN (pat, 0));\n");
+ printf (" for (i = XVECLEN (pat, 0); i >= 0; i--)\n");
+ printf (" ro[i] = XVECEXP (pat, 0, i);\n");
printf (" break;\n\n");
}