This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: ctype macros broken on 64-bits builds?
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jeff Johnston <jjohnstn at redhat dot com>
- Cc: Martijn van Buul <pino+gmane_comp_lib_newlib at dohd dot org>, newlib at sources dot redhat dot com
- Date: Thu, 24 Jul 2008 15:58:50 +0000 (UTC)
- Subject: Re: ctype macros broken on 64-bits builds?
- References: <slrng88rdm.1f2h.pino@mud.stack.nl> <4884FF78.1030301@redhat.com>
On Mon, 21 Jul 2008, Jeff Johnston wrote:
> I have checked in the accompanying patch which implements the alternative you
> mention above. To prevent breakage in existing code, I have created a new
> pointer: __ctype_ptr__ and changed the ctype macros/functions to use it.
By removing the _ctype_ declaration, this breaks building libstdc++-v3,
which has headers knowing about the internals of ctype on several
different systems: the newlib version of those headers
(config/os/newlib/ctype_noninline.h) uses _ctype_.
I recommend restoring that compatibility declaration, so that existing
libstdc++-v3 versions still build.
--
Joseph S. Myers
joseph@codesourcery.com