From: Debian Science Maintainers Date: Thu, 6 Aug 2026 11:30:12 +0000 (+0200) Subject: hppa-do-not-use-fstack-clash-protection X-Git-Tag: archive/raspbian/2023.1.0-2+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=668af8875a6ad156bf176d91aaa3e366d031f03c;p=onetbb.git hppa-do-not-use-fstack-clash-protection =================================================================== Gbp-Pq: Name hppa-do-not-use-fstack-clash-protection.patch --- diff --git a/cmake/compilers/GNU.cmake b/cmake/compilers/GNU.cmake index 79bae43..5fb8e5a 100644 --- a/cmake/compilers/GNU.cmake +++ b/cmake/compilers/GNU.cmake @@ -84,7 +84,9 @@ endif() if (NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL Intel) # gcc 6.0 and later have -flifetime-dse option that controls elimination of stores done outside the object lifetime set(TBB_DSE_FLAG $<$>:-flifetime-dse=1>) - set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} $<$>:-fstack-clash-protection>) + if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(hppa|parisc)") + set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} $<$>:-fstack-clash-protection>) + endif() # Suppress GCC 12.x-15.x warning here that to_wait_node(n)->my_is_in_list might have size 0 set(TBB_COMMON_LINK_FLAGS ${TBB_COMMON_LINK_FLAGS} $<$>,$>:-Wno-stringop-overflow>) @@ -111,7 +113,9 @@ set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -Wformat -Wformat-secur if (CMAKE_SYSTEM_PROCESSOR MATCHES "(AMD64|amd64|i.86|x86)" AND NOT EMSCRIPTEN) set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$>:-fcf-protection=full>) endif () -set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$>:-fstack-clash-protection>) +if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(hppa|parisc)") + set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$>:-fstack-clash-protection>) +endif() # -z switch is not supported on MacOS and MinGW if (NOT APPLE AND NOT MINGW)