This is the mail archive of the 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]

[PATCH] New *-*-solaris2.x cross configury, including looser wchar_t requirements for all targets

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

For cross targets, I've had to expand the set of AC_DEFINE macros I
submitted earlier (which Benjamin polished in  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.


 - 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

 - 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 - - "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]