Instead of a static constexpr QL1SV object (which force the compiler to allocate storage and therefore causes relocations), use a mere automatic constexpr object (which doesn't). There never was a need to make this object static, as constexpr is enough to force the compiler to constant-fold them. The lambda doesn't have access without a capture, of course, but that is easily solved my moving the object definition into the lambda itself. See https://stackoverflow.com/questions/19067010/finding-where-relocations-originate/19338343#19338343 for the script to detect these issues. See https://www.akkadia.org/drepper/dsohowto.pdf Section 1.6 for why we care. Amends 18aff2b424577b4560b32698038e9bcf68a54b88. While at it, remove the static from the lambda, too. While it doesn't cause relocations, it might, on weaker compilers, cause a thread-safe static prologue to be emitted, and it's not needed, either. Pick-to: 6.9 6.8 6.5 Task-number: QTBUG-100536 Change-Id: Iaede4d02a84ea2e49b42f3da93a77cb8391df5bb Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%