]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Make names_pstl.cc require et tbb_backend
authorJonathan Wakely <jwakely@redhat.com>
Thu, 16 Feb 2023 12:18:25 +0000 (12:18 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 16 Feb 2023 12:35:13 +0000 (12:35 +0000)
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.

libstdc++-v3/testsuite/17_intro/names_pstl.cc

index 42ce098550cf2ce8710c3a6a84140a3eb429aed6..019e4774ff2526a7dae36c77844353c347c57677 100644 (file)
@@ -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(<tbb/tbb.h>)
+# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
 # include <tbb/tbb.h>
 #endif
 // Now we can define the macros to poison uses of non-reserved names:
This page took 0.056997 seconds and 5 git commands to generate.