From 99f25d8ea84021f7c7887a65085342760abd0c5a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 26 Feb 1999 08:00:08 -0800 Subject: [PATCH] * genextract.c (main): Clear recog_operands before extracting. From-SVN: r25473 --- gcc/ChangeLog | 2 ++ gcc/genextract.c | 2 ++ 2 files changed, 4 insertions(+) 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 * 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"); -- 2.30.2