diff options
| -rw-r--r-- | meta-oe/recipes-support/tbb/tbb/0001-arena-Remove-dead-code.patch | 40 | ||||
| -rw-r--r-- | meta-oe/recipes-support/tbb/tbb_2021.2.0.bb | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/tbb/tbb/0001-arena-Remove-dead-code.patch b/meta-oe/recipes-support/tbb/tbb/0001-arena-Remove-dead-code.patch new file mode 100644 index 0000000000..8a603ffe30 --- /dev/null +++ b/meta-oe/recipes-support/tbb/tbb/0001-arena-Remove-dead-code.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From b94a1e3d6b5c733ba24cfa0d35450d8659d48289 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 4 Jun 2021 13:07:28 -0700 | ||
| 4 | Subject: [PATCH] arena: Remove dead code | ||
| 5 | |||
| 6 | Fixes clang warning | ||
| 7 | arena.cpp:226:19: error: variable 'drained' set b | ||
| 8 | ut not used [-Werror,-Wunused-but-set-variable] | ||
| 9 | | std::intptr_t drained = 0; | ||
| 10 | | ^ | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://github.com/oneapi-src/oneTBB/pull/429] | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | src/tbb/arena.cpp | 3 +-- | ||
| 16 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/src/tbb/arena.cpp b/src/tbb/arena.cpp | ||
| 19 | index 4a9c0f8a..c8ed4999 100644 | ||
| 20 | --- a/src/tbb/arena.cpp | ||
| 21 | +++ b/src/tbb/arena.cpp | ||
| 22 | @@ -232,14 +232,13 @@ void arena::free_arena () { | ||
| 23 | __TBB_ASSERT( !my_global_concurrency_mode, NULL ); | ||
| 24 | #endif | ||
| 25 | poison_value( my_guard ); | ||
| 26 | - std::intptr_t drained = 0; | ||
| 27 | for ( unsigned i = 0; i < my_num_slots; ++i ) { | ||
| 28 | // __TBB_ASSERT( !my_slots[i].my_scheduler, "arena slot is not empty" ); | ||
| 29 | // TODO: understand the assertion and modify | ||
| 30 | // __TBB_ASSERT( my_slots[i].task_pool == EmptyTaskPool, NULL ); | ||
| 31 | __TBB_ASSERT( my_slots[i].head == my_slots[i].tail, NULL ); // TODO: replace by is_quiescent_local_task_pool_empty | ||
| 32 | my_slots[i].free_task_pool(); | ||
| 33 | - drained += mailbox(i).drain(); | ||
| 34 | + mailbox(i).drain(); | ||
| 35 | my_slots[i].my_default_task_dispatcher->~task_dispatcher(); | ||
| 36 | } | ||
| 37 | __TBB_ASSERT(my_fifo_task_stream.empty(), "Not all enqueued tasks were executed"); | ||
| 38 | -- | ||
| 39 | 2.31.1 | ||
| 40 | |||
diff --git a/meta-oe/recipes-support/tbb/tbb_2021.2.0.bb b/meta-oe/recipes-support/tbb/tbb_2021.2.0.bb index f4c52daf41..0b039a181a 100644 --- a/meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +++ b/meta-oe/recipes-support/tbb/tbb_2021.2.0.bb | |||
| @@ -19,6 +19,7 @@ SRC_URI = "git://github.com/oneapi-src/oneTBB.git;protocol=https;branch=${BRANCH | |||
| 19 | file://0001-CMakeLists.txt-exclude-riscv64-riscv32.patch \ | 19 | file://0001-CMakeLists.txt-exclude-riscv64-riscv32.patch \ |
| 20 | file://0001-Disable-use-of-_tpause-instruction.patch \ | 20 | file://0001-Disable-use-of-_tpause-instruction.patch \ |
| 21 | file://0001-set_my_tls_end_of_input-Use-an-arbitrary-but-valid-p.patch \ | 21 | file://0001-set_my_tls_end_of_input-Use-an-arbitrary-but-valid-p.patch \ |
| 22 | file://0001-arena-Remove-dead-code.patch \ | ||
| 22 | " | 23 | " |
| 23 | 24 | ||
| 24 | S = "${WORKDIR}/git" | 25 | S = "${WORKDIR}/git" |
