The airy and hypergeometric functions are non-standard extensions and
are only defined for -std=gnu++NN dialects, not -std=c++NN ones.
* ext/special_functions/airy_ai/check_nan.cc: Skip test for
non-standard extension when a strict -std=c++NN dialect is used.
* ext/special_functions/airy_ai/check_value.cc: Likewise.
* ext/special_functions/airy_ai/compile.cc: Likewise.
* ext/special_functions/airy_bi/check_nan.cc: Likewise.
* ext/special_functions/airy_bi/check_value.cc: Likewise.
* ext/special_functions/airy_bi/compile.cc: Likewise.
* ext/special_functions/conf_hyperg/check_nan.cc: Likewise.
* ext/special_functions/conf_hyperg/check_value.cc: Likewise.
* ext/special_functions/conf_hyperg/compile.cc: Likewise.
* ext/special_functions/hyperg/check_nan.cc: Likewise.
* ext/special_functions/hyperg/check_value.cc: Likewise.
* ext/special_functions/hyperg/compile.cc: Likewise.
Tested powerpc64le-linux, committed to trunk.
commit af8f4eee0b824de168fde8b8d7423360fdc8f6ae
Author: Jonathan Wakely <jwak...@redhat.com>
Date: Fri Oct 19 21:23:56 2018 +0100
Disable tests that only pass for GNU dialects
The airy and hypergeometric functions are non-standard extensions and
are only defined for -std=gnu++NN dialects, not -std=c++NN ones.
* ext/special_functions/airy_ai/check_nan.cc: Skip test for
non-standard extension when a strict -std=c++NN dialect is used.
* ext/special_functions/airy_ai/check_value.cc: Likewise.
* ext/special_functions/airy_ai/compile.cc: Likewise.
* ext/special_functions/airy_bi/check_nan.cc: Likewise.
* ext/special_functions/airy_bi/check_value.cc: Likewise.
* ext/special_functions/airy_bi/compile.cc: Likewise.
* ext/special_functions/conf_hyperg/check_nan.cc: Likewise.
* ext/special_functions/conf_hyperg/check_value.cc: Likewise.
* ext/special_functions/conf_hyperg/compile.cc: Likewise.
* ext/special_functions/hyperg/check_nan.cc: Likewise.
* ext/special_functions/hyperg/check_value.cc: Likewise.
* ext/special_functions/hyperg/compile.cc: Likewise.
diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_nan.cc
b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_nan.cc
index c5473a35aea..563bf891b8d 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_nan.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_nan.cc
@@ -2,6 +2,7 @@
// { dg-require-c-std "" }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
// { dg-add-options ieee }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git
a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_value.cc
b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_value.cc
index 8c4c5362b86..e92267bfffa 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_value.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/check_value.cc
@@ -1,5 +1,6 @@
// { dg-do run { target c++11 } }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
//
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/compile.cc
b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/compile.cc
index a4d5006dafc..581701a6bae 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/airy_ai/compile.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/airy_ai/compile.cc
@@ -1,5 +1,6 @@
// { dg-do compile { target c++11 } }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_nan.cc
b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_nan.cc
index 4b852882b0b..07649603356 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_nan.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_nan.cc
@@ -2,6 +2,7 @@
// { dg-require-c-std "" }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
// { dg-add-options ieee }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git
a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_value.cc
b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_value.cc
index d830fbf8aa5..d10c6c5f15c 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_value.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/check_value.cc
@@ -1,5 +1,6 @@
// { dg-do run { target c++11 } }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
//
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/compile.cc
b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/compile.cc
index 727b809974d..872bc795903 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/airy_bi/compile.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/airy_bi/compile.cc
@@ -1,5 +1,6 @@
// { dg-do compile { target c++11 } }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git
a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc
b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc
index 0da38b158c1..4e853413fa1 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc
@@ -2,6 +2,7 @@
// { dg-require-c-std "" }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
// { dg-add-options ieee }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git
a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc
b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc
index 1b6785e09b9..fcd673f61e7 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc
@@ -1,5 +1,6 @@
// { dg-do run { target c++11 } }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
//
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git
a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc
b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc
index 1a19fe55854..c5064edd59d 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc
@@ -1,5 +1,6 @@
// { dg-do compile { target c++11 } }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc
b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc
index ee3b679ce9b..b974bd38860 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc
@@ -2,6 +2,7 @@
// { dg-require-c-std "" }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
// { dg-add-options ieee }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc
b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc
index 7c907813425..4f848e614ca 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc
@@ -1,6 +1,7 @@
// { dg-do run { target c++11 } }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__ -ffp-contract=off" }
// { dg-additional-options "-ffloat-store" { target { m68*-*-* || ia32 } } }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
//
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//
diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc
b/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc
index bcf7bffdd66..35ac1c1c719 100644
--- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc
+++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc
@@ -1,5 +1,6 @@
// { dg-do compile { target c++11 } }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
+// { dg-skip-if "no extensions in strict dialects" { *-*-* } { "-std=c++*" } }
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
//