collect_insn_data is supposed to figure out the max number of constraints, but doesn't look at the constraints of match_scratch (only match_operand). Though match_scratch is unlikely to be the only specified constraint in a pattern (and so unlikely to affect any target), it's nevertheless a bug.
-- Summary: gensupport.c:collect_insn_data doesn't consider the constraints of match_scratch Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hp at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: any http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21273