From cfd3c2e2a49dd3e29b42baa0f22feffd4b346231 Mon Sep 17 00:00:00 2001 From: Thomas Rodgers Date: Thu, 23 Jan 2020 21:54:44 -0800 Subject: [PATCH] Suppress deprecation warnings in tbb effective target check TBB 2020 added deprecation warnings which produced output not expected by check_effective_target_tbb-backend --- libstdc++-v3/testsuite/lib/libstdc++.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 94f3fdb2bc8..f451719bdd4 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -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] { -- 2.21.1