DJ Delorie <d...@redhat.com> writes: > genrecog uses strings to keep track of where it is, specifically, > digits and letters. I've got an insn that writes to more than 26 > registers. Would switching to something bigger than [A-Z] be > difficult? Perhaps using Japanese letters instead of English? ;-)
That sounds like an awkward insn. The code currently uses upper case and lower case letters to mean different things, and tests for them using ISUPPER and ISLOWER. It uses strlen, strcmp, and strdup to manage these strings. Extending it to use some more transparent data structure sounds like a good idea, but I think it might be nontrivial. It would be nice if genrecog at least checked for an out of range letter. Ian