This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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] |
I noticed that neither the native or cross compiled libstdc++-v3 packaged with gcc-3.3 have been detecting C99 wchar_t support when configured for a sparc-sun-solaris2.8 target. AFIAK, this version of Solaris is complaint enough to work. I tracked this down to a few missing wide character functions which are only used to inject names into the std namespace (i.e. they are never called by libstdc++). I figured it seemed quite safe to simply not inject them if they aren't there in the first place, and thus this patch. For cross targets, I've had to expand the set of AC_DEFINE macros I submitted earlier (which Benjamin polished in http://gcc.gnu.org/ml/libstdc++/2003-05/msg00255.html). I suppose this could almost be split into two separate patches, but a large number of these definitions are needed to make the cross compiler support wchar_t properly anyway. As a result, this patch needs to be applied to stock gcc-3.3/libstdc++-v3 after that one. Caveats: - I'm not 100% sure that the AC_DEFINE macros will work on all supported versions of Solaris. As such, I have added them under the 2.7, 2.8, and 2.9 support rule, but even that might be a stretch. I don't have any 2.7 or 2.9 machine handy on which to test. - The HAVE___BUILTIN* definitions don't seem to be appropriate for non-SPARC targets. These didn't seem to be checked-for in a cross configure, so I threw them in where it looked "safe" to do so. Perhaps I am being to agressive with these? Please let me know if there is a better way to do this. Thanks. -- ------------------------------------------------------------------ Brad Spencer - spencer@infointeractive.com - "It's quite nice..." Systems Architect | InfoInterActive Corp. | A Canadian AOL Company
Attachment:
gcc-3.3-libstdc++-v3-looser-wchar_t-req.patch.try2
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |