libstdc++/69893 make <tr1/cmath> work with C++11
commitb72ffc54788ba8a3c4becc37bb40dbaf788fa486
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Feb 2016 19:49:31 +0000 (23 19:49 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Feb 2016 19:49:31 +0000 (23 19:49 +0000)
treeecf77ef1368d8dc9101a1e1bad3eac912471613f
parentd41ab738d3bf68e6ba5f7f53721b0fbd0570c305
libstdc++/69893 make <tr1/cmath> work with C++11

PR libstdc++/69893
* include/tr1/cmath (acosh, asinh, atanh, cbrt, copysign, erf, erfc,
exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb, lgamma, llrint,
llround, log1p, log2, logb, lrint, lround, nan, nearbyint, nextafter,
nexttoward, remainder, remquo, rint, round, scalbln, scalbn, tgamma,
trunc) [__cplusplus >= 201103L]: Import from namespace std.
(fabs) [__cplusplus < 201103L]: Import from namespace std.
* include/tr1/complex (acosh, asinh, atanh) [__cplusplus >= 201103L]:
Likewise.
* testsuite/tr1/headers/c++200x/complex.cc: Add std::fabs to global
namespace before including TR1 headers.
* testsuite/tr1/headers/c++200x/math.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233644 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/cmath
libstdc++-v3/include/tr1/complex
libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc
libstdc++-v3/testsuite/tr1/headers/c++200x/math.cc [copied from libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc with 81% similarity]