This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

genextract tweek


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");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]