From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id A38C83858D33; Thu, 16 Feb 2023 12:39:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A38C83858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676551147; bh=WVg3gPJViPlMF9amMrxYqji1XvnWrfiLoWY8aMXaiTc=; h=From:To:Subject:Date:From; b=s2tTnUMp565bZUQKbZ52szA6zkNZUBUjdZZvURSnPoLcWB2Ekt2UV8N/4Jcf/3++o IfOudbMex2tOb0W0EmTuaEnrDUqrcKN1p1kx70zC611EDOIGbmjTrAxZS8O36N32Pr W+9FLKPtEQKBaHJFN05S3N5BdaD0lzr16U5vrTAs= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-6082] libstdc++: Make names_pstl.cc require et tbb_backend X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: d82490d531272f50202b663400cfa814335a11f2 X-Git-Newrev: 7478278f88ba1753e68d6962b7f38d1be5b43d56 Message-Id: <20230216123907.A38C83858D33@sourceware.org> Date: Thu, 16 Feb 2023 12:39:07 +0000 (GMT) List-Id: https://gcc.gnu.org/g:7478278f88ba1753e68d6962b7f38d1be5b43d56 commit r13-6082-g7478278f88ba1753e68d6962b7f38d1be5b43d56 Author: Jonathan Wakely Date: Thu Feb 16 12:18:25 2023 +0000 libstdc++: Make names_pstl.cc require et tbb_backend The https://github.com/oneapi-src/oneTBB/pull/833 fix is needed for TBB headers to avoid an error with GCC 13. The new names_pstl.cc test needs to check effective target tbb_backend so that it's UNSUPPORTED on systems without fixed headers. libstdc++-v3/ChangeLog: * testsuite/17_intro/names_pstl.cc: Require et tbb_backend. Diff: --- libstdc++-v3/testsuite/17_intro/names_pstl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/17_intro/names_pstl.cc b/libstdc++-v3/testsuite/17_intro/names_pstl.cc index 42ce098550c..019e4774ff2 100644 --- a/libstdc++-v3/testsuite/17_intro/names_pstl.cc +++ b/libstdc++-v3/testsuite/17_intro/names_pstl.cc @@ -1,10 +1,12 @@ // { dg-do compile { target c++17 } } -// { dg-additional-options "-DTBB_SUPPRESS_DEPRECATED_MESSAGES=1" { target tbb_backend } } +// { dg-require-effective-target tbb_backend } +// { dg-add-options no_pch } // The TBB headers use non-reserved names (because they're not part of the // implementation) so we need to include them before the macro definitions // in names.cc: #if __has_include() +# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 # include #endif // Now we can define the macros to poison uses of non-reserved names: