Suppress deprecation warnings in tbb effective target check
diff mbox series

Message ID xkqetv4lfl7t.fsf@trodgers.remote.f30
State New
Headers show
Series
  • Suppress deprecation warnings in tbb effective target check
Related show

Commit Message

Thomas Rodgers Jan. 24, 2020, 5:59 a.m. UTC

Comments

Jonathan Wakely Jan. 24, 2020, 10:52 a.m. UTC | #1
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
>

Patch
diff mbox series

From cfd3c2e2a49dd3e29b42baa0f22feffd4b346231 Mon Sep 17 00:00:00 2001
From: Thomas Rodgers <trodgers@trodgers.remote.f30>
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