This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
genextract tweek
- To: egcs-patches at egcs dot cygnus dot com
- Subject: genextract tweek
- From: Richard Henderson <rth at cygnus dot com>
- Date: Fri, 26 Feb 1999 16:01:48 -0800
This little ditty cured some headaches I was having tracking down
buggy md attributes referencing operands that did not exist for
the insns in question.
r~
* genextract.c (main): Clear recog_operands before extracting.
Index: genextract.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/genextract.c,v
retrieving revision 1.24
diff -c -p -d -r1.24 genextract.c
*** genextract.c 1999/01/22 11:51:58 1.24
--- genextract.c 1999/02/26 23:58:49
*************** from the machine description file `md'.
*** 461,466 ****
--- 461,468 ----
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");