[v3] solaris c include model

Benjamin Kosnik bkoz@redhat.com
Wed Apr 11 01:34:00 GMT 2007


This is still a bit raw but I wanted to post this for archival
reasons. I'm loosing access to my current solaris box for 2 weeks and
won't be able to work on this.

In a nutshell, this introduces a new "C" header model, ie
--enable-cheaders=c_std_solaris. In this patch, this is the default
for solaris 2.7+, which should probably be tested or tweaked.

To get this to work, you'll need to:

1) patch cc1plus so that __cplusplus is the correct value. (Also the
oldest libstdc++ PR)
2) patch gcc/ginclude/stddef.h
3) do some fixincludes on the solaris side, where extern "C" and
extern "C++" decls clash with gcc but not, apparently, with sunpro.
See the attached for a manual way to do this: I've not yet fought with
fixincludes for this.
4) patch libstdc++ with the mega-patch attached.

There are a lot of hacks in the libstdc++ bits here (strdup on
solaris??? How do I get this back? stddef.h is not figured out, and
it's apparent that better separation between C90 and C99 needs to take
place in wchar/wctype), but oh well. I'll try to fix this up when I
return.

In addition, this includes the libstdc++ parts of the newlib work.
Which is not finished yet either.

To intrepid solaris hackers, I say "bonne chance." It will be
interesting to see if you exist.

tested x86/solaris-2.11. Not. libstdc++ builds though.

-benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.20070328-cplusplus
Type: application/octet-stream
Size: 466 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070411/afa33552/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.sol-fixincludes-stdlib_iso
Type: application/octet-stream
Size: 2224 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070411/afa33552/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.stddef.h
Type: text/x-chdr
Size: 756 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070411/afa33552/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.20070411-2.bz2
Type: application/x-bzip2
Size: 12655 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070411/afa33552/attachment.bz2>


More information about the Libstdc++ mailing list