diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-26 16:00:08 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-26 16:00:08 +0000 |
commit | ea39e8853fc117c961bbaa7848c233bd612bef18 (patch) | |
tree | b5e591dae8b1c995360c00bb3d6857134b9cb296 | |
parent | d3ac3277323216cd3ac4346501aaa7cac8cc89b9 (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/genextract.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c72efa2ac3..753b39e275c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -3,6 +3,8 @@ Fri Feb 26 15:33:45 1999 Richard Henderson <rth@cygnus.com> * genattrtab.c (simplify_knowing): Fix uninitialized read in Feb 21 change. + * genextract.c (main): Clear recog_operands before extracting. + Fri Feb 26 02:24:57 1999 Jeffrey A Law (law@cygnus.com) * c-pragma.c (add_weak); Delete. Moved into... 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"); |