This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: genrecog: ran out of alphabet
- From: Ian Lance Taylor <iant at google dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 17 Jun 2009 07:18:13 -0700
- Subject: Re: genrecog: ran out of alphabet
- References: <200906170450.n5H4orxL028918@greed.delorie.com>
DJ Delorie <dj@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