[PATCH] Suppress deprecation warnings in tbb effective target check
Jonathan Wakely
jwakely@redhat.com
Fri Jan 24 17:21:00 GMT 2020
You didn't provide a ChangeLog entry. Please be sure to add one.
OK for master and gcc-9 branch, with the ChangeLog entry. Thanks.
On 23/01/20 21:59 -0800, Thomas Rodgers wrote:
>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
>
More information about the Libstdc++
mailing list