Skip to content

Match deadcode elimination with cpu feature check

[PATCH 1/2] Gui: Always declare qt_memfill{32|64} as function pointers on x86

Having the declaration of a function depend on compiler flags is a
fundamentally bad idea since you can compile different compilation units
that all include the header with different flags. This leads to
undefined symbols.

Pick-to: 6.5
Fixes: QTBUG-109159
Change-Id: I0aede280988e4f10c42d5b1824ad9c96a1e10854
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 9615e7f9e538af4ad212f4f71d1364c64b18542d)

[PATCH 2/2] Match deadcode elimination with cpu feature check

We check for Haswell, so don't just check for AVX2 when removing
possible dead-code.

Pick-to: 6.5 6.2 5.15
Fixes: QTBUG-113315
Change-Id: Id341aebcef99065f4b6a96ad0f60b9de40ed55ab
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 178c123a6fa217f26f3f2be25f3495d01d1ca386)
Edited by Andreas Sturmlechner

Merge request reports