Newlib _ctype_ alias kludge now invalid due to PR middle-end/15700 fix.

Corinna Vinschen
Tue Mar 22 16:45:00 GMT 2005

On Mar 22 11:06, Christopher Faylor wrote:
> feathered but it seems like the replacement code now causes an extra pointer
> dereference for a popular set of macros.  I don't understand how that's a good
> thing for a library which is supposed to run on an embedded target.
> As far as cygwin is concerned, I'm not happy about having to export a new variable
> just for the benefit of slowing the code down.  It will mean years of "Why cygwin
> say __ctype_ptr not found?  Should I reinstall windows?" email.
> Corinna has suggested an assembly language method which uses gas pseudo-ops to
> accomplish the goal of reenabling _ctype_.  I'd like to offer my endorsement of
> this technique, or at least I'd like to suggest that we not just casually move
> to replacing _ctype_ with __ctype_ptr.

I agree.  Since the assembler method should work on every target, there's
no good reason anymore to move to __ctype_ptr.


Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.

More information about the Newlib mailing list