[patch] libstdc++/69386 Ensure C++ language linkage in cmath and cstdlib

Jonathan Wakely jwakely@redhat.com
Thu Jan 21 13:36:00 GMT 2016


On 21/01/16 10:27 +0100, Dominique d'Humières wrote:
>Jonathan,
>>     PR libstdc++/69386
>>     * include/c_global/ccomplex: Ensure C++ language linkage.
>>     * include/c_global/cmath: Likewise.
>>     * include/c_global/cstdlib: Likewise.
>>     * include/c_global/ctgmath: Likewise.
>>     * testsuite/17_intro/headers/c++2011/linkage.cc: New.
>
>The test  testsuite/17_intro/headers/c++2011/linkage.cc fails on darwin
>
>/opt/gcc/work/libstdc++-v3/testsuite/17_intro/headers/c++2011/linkage.cc:47:19: fatal error: uchar.h: No such file or directory

I should have been checking which headers are actually supported,
fixed like this. This also adds extern "C++" to some more headers, so
that the order of including <math.h> and <complex.h> doesn't matter.

Tested powerpc64le-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 5470 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160121/e37cbc24/attachment.bin>


More information about the Libstdc++ mailing list