[RFC] Strange #include scheme in profile mode

Paolo Carlini paolo.carlini@oracle.com
Thu Jun 24 16:17:00 GMT 2010


Hi again,
> Hi all, hi Silvius,
>
> I'm seeing, repeatedly, this weird pattern, unique to profile-mode:
>
> #ifdef __GXX_EXPERIMENTAL_CXX0X__
> #include <cxxx>
> #else
> #include <xxx.h>
> #endif
>
> which I don't understand at all: certainly, the <cxxx> headers are not
> new in C++0x... Can you explain? I'm pretty sure that special dance can
> be cleaned up. By the way, I'm also seeing uses of the non-standard
> strdup, which can be certainly replaced by dynamic memory allocation and
> copy in a small helper, let's stay away from non-standard C functions,
> if at all possible...
>   
I'm going to commit the below, tested x86_64-linux check-profile, which
solves both the issues. I'm pretty sure further clean-ups are possible,
however.

Paolo.

/////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_profile
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20100624/b524c36f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_profile
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20100624/b524c36f/attachment-0001.ksh>


More information about the Libstdc++ mailing list