genattrtab.c has struct insn_def { struct insn_def *next; /* Next insn in chain. */ rtx def; /* The DEFINE_... */ int insn_code; /* Instruction number. */ int insn_index; /* Expression numer in file, for errors. */ int lineno; /* Line number. */ int num_alternatives; /* Number of alternatives. */ int vec_idx; /* Index of attribute vector in `def'. */ };
It doesn't record filename. Most of machine descriptions have more than one input file. As the result, when genattrtab prints an error message with message_with_line, it dpesn't have filename and it is hard to see where the problem is. -- Summary: genattrtab.c doesn't record filename Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hjl at lucon dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31778