aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorEdward Smith-Rowland <3dw4rd@verizon.net>2016-01-22 23:17:10 +0000
committerEdward Smith-Rowland <emsr@gcc.gnu.org>2016-01-22 23:17:10 +0000
commit02dc2419296e0ba6195f6b9abf0b052c98db90d0 (patch)
tree565bcd4a656f7fa733897501a8c2f783b1f353c6 /libstdc++-v3
parent62041cfc096feb6e4e4a9bf5bbeab906dad708fa (diff)
downloadgcc-02dc2419296e0ba6195f6b9abf0b052c98db90d0.zip
gcc-02dc2419296e0ba6195f6b9abf0b052c98db90d0.tar.gz
gcc-02dc2419296e0ba6195f6b9abf0b052c98db90d0.tar.bz2
TR29124 C++ Special Math - <math.h> pulls funcs into global namespace.
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog28
-rw-r--r--libstdc++-v3/include/c_compatibility/math.h72
-rw-r--r--libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc3
-rw-r--r--libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc3
23 files changed, 119 insertions, 44 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index f7e4ea0..b124487 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/include/c_compatibility/math.h b/libstdc++-v3/include/c_compatibility/math.h
index d1fe75d..243e631 100644
--- a/libstdc++-v3/include/c_compatibility/math.h
+++ b/libstdc++-v3/include/c_compatibility/math.h
@@ -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
+
diff --git a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc
index b760908..71af880 100644
--- a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc
index 7561952..9641f3a 100644
--- a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc b/libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc
index c614e49..a6eb6ac 100644
--- a/libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc
index 08528af..de4ef4b 100644
--- a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc
index 6cbe32d..4707bab 100644
--- a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc
index 97c4c4c..76da042 100644
--- a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc
index 6ba5307..33d3fe3 100644
--- a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc
index a2298da..8b25dd0 100644
--- a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc
index c32b4df..4726e67 100644
--- a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc
index 4356ca98..4cf8630 100644
--- a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc b/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc
index 2421c9a..0effa24 100644
--- a/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc b/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc
index d3385ad..098f301 100644
--- a/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc b/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc
index 61d1ea6..6e8f2fd 100644
--- a/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc b/libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc
index 6b73aad..c501bfd 100644
--- a/libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc b/libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc
index bf6935e..f792e17 100644
--- a/libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc
index 62f1464..70c85cc 100644
--- a/libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc
index 4c69f9a..00458b1 100644
--- a/libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc
index 2034c41..e6e3cd9 100644
--- a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc
index 86a5d76..1fb7c2d 100644
--- a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc
index c82b29e..81cc525 100644
--- a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc
@@ -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.
diff --git a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc
index 8818219..b9d8386 100644
--- a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc
+++ b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc
@@ -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.