libstdc++: Fix PSTL tests to run correctly with newer Thread Building Blocks
authorThomas Rodgers <rodgert@appliantology.com>
Tue, 21 Apr 2020 08:01:26 +0000 (01:01 -0700)
committerThomas Rodgers <rodgert@appliantology.com>
Tue, 21 Apr 2020 08:05:13 +0000 (01:05 -0700)
* testsuite/lib/libstdc++.exp: Add additional_flags=
-DTBB_SUPRESS_DEPRECATED_MESSAGES=1 to suppress warnings when
compiling with a newer Thread Building Blocks.

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index 0cce2b03c1857659eab8068b6fd8f1558d5e0cc7..d09d114d948d6bfa11b7a4b2a38d2417f0545db4 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-20  Thomas Rodgers  <trodgers@redhat.com>
+
+       * testsuite/lib/libstdc++.exp: Add additional_flags=
+       -DTBB_SUPRESS_DEPRECATED_MESSAGES=1 to suppress warnings when
+       compiling with a newer Thread Building Blocks.
+
 2020-04-20  Jonathan Wakely  <jwakely@redhat.com>
 
        * testsuite/24_iterators/istreambuf_iterator/sentinel.cc: New test.
index 7f4532c55b22fa33bb16facaefc23b86b00af561..16963f2edd5796f3e237ee74b39aa10040e60c33 100644 (file)
@@ -1597,7 +1597,8 @@ proc check_effective_target_tbb-backend { } {
         puts $f "}"
         close $f
 
-        set lines [v3_target_compile $src $exe executable "additional_flags=-std=c++17 additional_flags=-ltbb"]
+        set lines [v3_target_compile $src $exe executable "additional_flags=-std=c++17 additional_flags=-ltbb
+                                                           additional_flags=-DTBB_SUPPRESS_DEPRECATED_MESSAGES=1"]
         file delete $src
 
         if [string match "" $lines] {