This is the mail archive of the
mailing list for the GCC project.
Re: PR 18785: alternative patch
- From: Geoffrey Keating <geoffk at geoffk dot org>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 14 Feb 2005 19:04:51 -0800
- Subject: Re: PR 18785: alternative patch
- References: <email@example.com>
I looked at both of these, and realised that I'd do it neither way.
What I'd do is, like Roger, build up a global table (not a 'huge'
table, one that contains 256 1-byte entries) that maps between the
required part of the host and target character sets. However, like
Zack, I would never have special 'outs' for the case where
host==target; I would always use the table.
... I'm sure you now both want to explain why I'm wrong :-)