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 0cce2b0..d09d114 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 7f4532c..16963f2 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] {