From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129813 invoked by alias); 19 Oct 2018 21:51:35 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 129648 invoked by uid 89); 19 Oct 2018 21:51:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=dialect, dgaddoptions, dg-add-options X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Oct 2018 21:51:31 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8647C9D504; Fri, 19 Oct 2018 21:51:30 +0000 (UTC) Received: from localhost (unknown [10.33.36.104]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2C3B568896; Fri, 19 Oct 2018 21:51:30 +0000 (UTC) Date: Fri, 19 Oct 2018 22:16:00 -0000 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] Disable tests that only pass for GNU dialects Message-ID: <20181019215129.GA20541@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-10/txt/msg01222.txt.bz2 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-length: 954 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. --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch.txt" Content-length: 8443 commit af8f4eee0b824de168fde8b8d7423360fdc8f6ae Author: Jonathan Wakely 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. // --GvXjxJ+pjyke8COw--