diff --git a/core/base/src/TColorGradient.cxx b/core/base/src/TColorGradient.cxx index 74c1f4bba761a..bc53c419b9700 100644 --- a/core/base/src/TColorGradient.cxx +++ b/core/base/src/TColorGradient.cxx @@ -111,6 +111,12 @@ void TColorGradient::ResetColor(UInt_t nPoints, const Double_t *points, fColors.assign(colors, colors + nPoints * 4); Double_t sum[4] = { 0., 0., 0., 0. }; +#ifdef __clang__ + // Clang vectoriser bug (confirmed for clang 20 - 22) + // https://github.com/llvm/llvm-project/issues/194008 + // The store in the loop can smash the stack with e.g. -O2 -mavx2. +#pragma clang loop vectorize(disable) +#endif for (unsigned n = 0; n < fColors.size(); ++n) sum[n % 4] += fColors[n]; diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt index 568ef9662e338..c3fa6ca37c95c 100644 --- a/tutorials/CMakeLists.txt +++ b/tutorials/CMakeLists.txt @@ -743,13 +743,6 @@ foreach(t ${tutorials}) if(${t} IN_LIST multithreaded) set_tests_properties(tutorial-${tname} PROPERTIES PROCESSORS ${NProcessors}) endif() - - if(CMAKE_SYSTEM_NAME MATCHES "Darwin" AND CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER_EQUAL 25.4 AND tname MATCHES "gl-.*grad") - # ROOT-21367 - # On mac beta, there is a stack corruption (suspected to be a compiler bug) that may fail these tests - set_tests_properties(tutorial-${tname} PROPERTIES DISABLED True) - message(NOTICE "Disabling tutorial ${tname} for mac beta") - endif() endforeach() #---Loop over all MPI tutorials and define the corresponding test---------