This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR 18785: alternative patch


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 :-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]