Partial shadow header patch (was Re: still problems with libstdcxx-v3 and -ansi)
Steven King
sxking@uswest.net
Tue Sep 26 12:35:00 GMT 2000
On Mon, 25 Sep 2000, Benjamin Kosnik wrote:
> The shadow headers will allow all children currently hungry to be
> immediately fed. Wars will cease. Peace and prosperity will reign. C++
> implementors will rejoice.
you forgot, cure the common cold.
>
> Any word on an ETA? Can you post a partial patch, or a work-in-progress?
Okay, Okay already. This should be considered work in progress. Anyone
whose interested (Brent?) might try it, but its definately not ready to go into
the tree.
Configure as normal for cshadow and add to your CXXFLAGS for any target code
with "-fno-builtins -D_ISOC99_SOURCE -I $(prefix)/g++-v3/shadow". For some
stuff adding "-I $(prefix)/g++-v3/cshadow" maybe counterproductive.
There maybe some problems with the ordering of #includes in user code; I think
mostly due to cshadow hacks or lack there of. I wouldnt be surprised if
non-glibc systems have problems, especially with the changes to _G_config.h.
Oh, and this will work (most of the time) with -ansi -pedantic but only if
you specify -D_ISOC99_SOURCE...
--
Steven King
sxking@uswest.net
More information about the Libstdc++
mailing list