[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-patches
Subject: genextract tweek
From: Richard Henderson <rth () cygnus ! com>
Date: 1999-02-27 0:01:48
[Download RAW message or body]
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");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic