From: Thomas Rodgers Date: Thu, 23 Apr 2020 20:33:09 +0000 (-0700) Subject: libstdc++: Fix PSTL tests to run correctly with newer Thread Building Blocks X-Git-Tag: misc/first-auto-changelog-9~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c32aa69c086e1b76d2176829db85a6ba9650a2da;p=thirdparty%2Fgcc.git libstdc++: Fix PSTL tests to run correctly with newer Thread Building Blocks * testsuite/lib/libstdc++.exp: Add additional_flags= -DTBB_SUPRESS_DEPRECATED_MESSAGES=1 to suppress warnings when compiling with a newer Thread Building Blocks. --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 85d8c9e4feaa..af94bd2b130b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2020-04-20 Thomas Rodgers + + * 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-23 Jonathan Wakely Backport from mainline diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 1ab896d3deb3..a616227ae7bf 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -1623,7 +1623,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] {