TR29124 C++ Special Math - <math.h> pulls funcs into global namespace.
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Fri, 22 Jan 2016 23:17:10 +0000 (23:17 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Fri, 22 Jan 2016 23:17:10 +0000 (23:17 +0000)
2016-01-22  Edward Smith-Rowland  <3dw4rd@verizon.net>

TR29124 C++ Special Math - <math.h> pulls funcs into global namespace.
* include/c_compatibility/math.h: Import the TR29124 functions
into the global namespace.
* testsuite/special_functions/01_assoc_laguerre/compile_2.cc: Remove
xfail and make compile-only.
* testsuite/special_functions/02_assoc_legendre/compile_2.cc: Ditto.
* testsuite/special_functions/03_beta/compile_2.cc: Ditto.
* testsuite/special_functions/04_comp_ellint_1/compile_2.cc: Ditto.
* testsuite/special_functions/05_comp_ellint_2/compile_2.cc: Ditto.
* testsuite/special_functions/06_comp_ellint_3/compile_2.cc: Ditto.
* testsuite/special_functions/07_cyl_bessel_i/compile_2.cc: Ditto.
* testsuite/special_functions/08_cyl_bessel_j/compile_2.cc: Ditto.
* testsuite/special_functions/09_cyl_bessel_k/compile_2.cc: Ditto.
* testsuite/special_functions/10_cyl_neumann/compile_2.cc: Ditto.
* testsuite/special_functions/11_ellint_1/compile_2.cc: Ditto.
* testsuite/special_functions/12_ellint_2/compile_2.cc: Ditto.
* testsuite/special_functions/13_ellint_3/compile_2.cc: Ditto.
* testsuite/special_functions/14_expint/compile_2.cc: Ditto.
* testsuite/special_functions/15_hermite/compile_2.cc: Ditto.
* testsuite/special_functions/16_laguerre/compile_2.cc: Ditto.
* testsuite/special_functions/17_legendre/compile_2.cc: Ditto.
* testsuite/special_functions/18_riemann_zeta/compile_2.cc: Ditto.
* testsuite/special_functions/19_sph_bessel/compile_2.cc: Ditto.
* testsuite/special_functions/20_sph_legendre/compile_2.cc: Ditto.
* testsuite/special_functions/21_sph_neumann/compile_2.cc: Ditto.

From-SVN: r232755

23 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/c_compatibility/math.h
libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc
libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc
libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc
libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc
libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc
libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc
libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc
libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc
libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc
libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc
libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc
libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc
libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc
libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc
libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc
libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc
libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc
libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc
libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc
libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc
libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc

index f7e4ea0224b7a5759677dda543ca7476edbf09d5..b1244875e54615da59064a1dad0e5582a62ee31d 100644 (file)
@@ -1,3 +1,31 @@
+2016-01-22  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       TR29124 C++ Special Math - <math.h> pulls funcs into global namespace.
+       * include/c_compatibility/math.h: Import the TR29124 functions
+       into the global namespace.
+       * testsuite/special_functions/01_assoc_laguerre/compile_2.cc: Remove
+       xfail and make compile-only.
+       * testsuite/special_functions/02_assoc_legendre/compile_2.cc: Ditto.
+       * testsuite/special_functions/03_beta/compile_2.cc: Ditto.
+       * testsuite/special_functions/04_comp_ellint_1/compile_2.cc: Ditto.
+       * testsuite/special_functions/05_comp_ellint_2/compile_2.cc: Ditto.
+       * testsuite/special_functions/06_comp_ellint_3/compile_2.cc: Ditto.
+       * testsuite/special_functions/07_cyl_bessel_i/compile_2.cc: Ditto.
+       * testsuite/special_functions/08_cyl_bessel_j/compile_2.cc: Ditto.
+       * testsuite/special_functions/09_cyl_bessel_k/compile_2.cc: Ditto.
+       * testsuite/special_functions/10_cyl_neumann/compile_2.cc: Ditto.
+       * testsuite/special_functions/11_ellint_1/compile_2.cc: Ditto.
+       * testsuite/special_functions/12_ellint_2/compile_2.cc: Ditto.
+       * testsuite/special_functions/13_ellint_3/compile_2.cc: Ditto.
+       * testsuite/special_functions/14_expint/compile_2.cc: Ditto.
+       * testsuite/special_functions/15_hermite/compile_2.cc: Ditto.
+       * testsuite/special_functions/16_laguerre/compile_2.cc: Ditto.
+       * testsuite/special_functions/17_legendre/compile_2.cc: Ditto.
+       * testsuite/special_functions/18_riemann_zeta/compile_2.cc: Ditto.
+       * testsuite/special_functions/19_sph_bessel/compile_2.cc: Ditto.
+       * testsuite/special_functions/20_sph_legendre/compile_2.cc: Ditto.
+       * testsuite/special_functions/21_sph_neumann/compile_2.cc: Ditto.
+
 2016-01-22  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/69116
index d1fe75d78c6ae4358beb11bbca6b0298c49a7c29..243e631a32a6a24987b7e597418d9c17fda8af10 100644 (file)
@@ -111,5 +111,73 @@ using std::tgamma;
 using std::trunc;
 #endif // C++11 && _GLIBCXX_USE_C99_MATH_TR1
 
-#endif
-#endif
+#if __STDCPP_WANT_MATH_SPEC_FUNCS__ == 1
+using std::assoc_laguerref;
+using std::assoc_laguerrel;
+using std::assoc_laguerre;
+using std::assoc_legendref;
+using std::assoc_legendrel;
+using std::assoc_legendre;
+using std::betaf;
+using std::betal;
+using std::beta;
+using std::comp_ellint_1f;
+using std::comp_ellint_1l;
+using std::comp_ellint_1;
+using std::comp_ellint_2f;
+using std::comp_ellint_2l;
+using std::comp_ellint_2;
+using std::comp_ellint_3f;
+using std::comp_ellint_3l;
+using std::comp_ellint_3;
+using std::cyl_bessel_if;
+using std::cyl_bessel_il;
+using std::cyl_bessel_i;
+using std::cyl_bessel_jf;
+using std::cyl_bessel_jl;
+using std::cyl_bessel_j;
+using std::cyl_bessel_kf;
+using std::cyl_bessel_kl;
+using std::cyl_bessel_k;
+using std::cyl_neumannf;
+using std::cyl_neumannl;
+using std::cyl_neumann;
+using std::ellint_1f;
+using std::ellint_1l;
+using std::ellint_1;
+using std::ellint_2f;
+using std::ellint_2l;
+using std::ellint_2;
+using std::ellint_3f;
+using std::ellint_3l;
+using std::ellint_3;
+using std::expintf;
+using std::expintl;
+using std::expint;
+using std::hermitef;
+using std::hermitel;
+using std::hermite;
+using std::laguerref;
+using std::laguerrel;
+using std::laguerre;
+using std::legendref;
+using std::legendrel;
+using std::legendre;
+using std::riemann_zetaf;
+using std::riemann_zetal;
+using std::riemann_zeta;
+using std::sph_besself;
+using std::sph_bessell;
+using std::sph_bessel;
+using std::sph_legendref;
+using std::sph_legendrel;
+using std::sph_legendre;
+using std::sph_neumannf;
+using std::sph_neumannl;
+using std::sph_neumann;
+#endif // __STDCPP_WANT_MATH_SPEC_FUNCS__
+
+#endif // __cplusplus
+
+#endif // _GLIBCXX_MATH_H
+
index b76090895ece9e4981c49750a8c7c9cbbe26b3a9..71af880c60d4f473ce83ac880cc938c8cc6af9eb 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 7561952e66018036ad331c5dbdc7c1abdd6abd5c..9641f3aab5a54a6947bcc24a6693718cf91833cc 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index c614e4933b4cfeb48d4a0c16adaa5bd954f205cd..a6eb6acad1a0758a2517bc29a44826886350dc59 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 08528af471fa56871e666f85ee3db99df6615a68..de4ef4b95b52e302473615dcafbb9bc36c712058 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 6cbe32d2c9adf4e0022da32fbccb3ac4c4d47b33..4707bab5e9f89e882c3b29e6adb0a99d5c260248 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 97c4c4c9c755b58a2fe197c3e05236b32ff5cfc2..76da042fd324072adbf314656d716277fdc39529 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 6ba5307e958c6574a567e0c0ece6596094a819fe..33d3fe3bbb59940c0e668d519cceab62a581f112 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index a2298dae9b737d30bd4722765f7ed22af4bf629b..8b25dd0a69e8698e72f190a4990585f565dc7d32 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index c32b4df02bf48a04c1c1a1e10ee7681be20d9716..4726e67050d4864ca30a56d48ada637ffcfaef73 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 4356ca980f3e7cb025f81d1416c39d4c359dab92..4cf86309a0f52ef61a05db8bda2667c081eaa1ad 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 2421c9a869283d27c12b6ab8b04af0328a56e5bf..0effa24003c1632dab21ec91d059c04a45cc8203 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index d3385ad4a85c3cad04a8c7fbf751a87ecebd8837..098f301fca718932a84f779a9b1925e9bdc62c98 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 61d1ea6e58b40f96f319d296204cc46081b7ff93..6e8f2fd019de1cf99094e0f02eb1937474946ac7 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 6b73aadfe3541f28834fa7ce88ef64bb2c204899..c501bfd2f0bcc3bfd05dd1369774ca4a58595d81 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index bf6935ea3a91c000b6419ba25b17f5a86c1ad722..f792e1740ab51af84cc048f8c1133ce2844378b4 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 62f1464684f43ff18cfa89390d2b5ab45969e95e..70c85ccf49803c3679338deccc45afbc244baf5f 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 4c69f9ae07aac14e1f658e0bdf8563b92c2e0a83..00458b190cbde70513bcbf0ac36754c904515e10 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 2034c411a7fa5aca3ba63f2015167bcbe1265e7d..e6e3cd989c96c726949791d3dae9db705c73ce3e 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 86a5d76ea3c490fb8d767badd80e64ad5e3a5c82..1fb7c2dedb3d0bdfd11476d3c60c5fcd85b2f222 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index c82b29e4f4e16279f273483fe6d51775d55191e5..81cc52516fa0c96b45e647371b9df57551023f76 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.
index 88182199afcf8cfa6278be1c6bafca64b01f03d4..b9d8386224427114e74a5b91a6db992652deb942 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-do compile { xfail *-*-* } }
-// { dg-excess-errors "" }
+// { dg-do compile }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 
 // Copyright (C) 2016 Free Software Foundation, Inc.