summaryrefslogtreecommitdiff
path: root/gcc/genextract.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-26 16:00:08 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-26 16:00:08 +0000
commitea39e8853fc117c961bbaa7848c233bd612bef18 (patch)
treeb5e591dae8b1c995360c00bb3d6857134b9cb296 /gcc/genextract.c
parentd3ac3277323216cd3ac4346501aaa7cac8cc89b9 (diff)
downloadgcc-ea39e8853fc117c961bbaa7848c233bd612bef18.tar.gz
* genextract.c (main): Clear recog_operands before extracting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25473 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genextract.c')
-rw-r--r--gcc/genextract.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/genextract.c b/gcc/genextract.c
index 67c779ffa5a..dc5cbd36ea5 100644
--- a/gcc/genextract.c
+++ b/gcc/genextract.c
@@ -461,6 +461,8 @@ from the machine description file `md'. */\n\n");
printf (" register rtx **ro_loc = recog_operand_loc;\n");
printf (" rtx pat = PATTERN (insn);\n");
printf (" int i ATTRIBUTE_UNUSED;\n\n");
+ printf (" memset (ro, 0, sizeof (*ro) * MAX_RECOG_OPERANDS);\n");
+ printf (" memset (ro_loc, 0, sizeof (*ro_loc) * MAX_RECOG_OPERANDS);\n");
printf (" switch (INSN_CODE (insn))\n");
printf (" {\n");
printf (" case -1:\n");