https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89951
--- Comment #6 from Alexander <bratsinot at gmail dot com> --- (In reply to Martin Liška from comment #5) > What kind of error? Can you please provide a test-case? Like these: > cd gui/ && ( test -e Makefile || > /tmp/qt-everywhere-src-5.12.1/qtbase/bin/qmake -o Makefile > /tmp/qt-everywhere-src-5.12.1/qtbase/src/gui/gui.pro ) && make -f Makefile > make[3]: Entering directory '/tmp/qt-everywhere-src-5.12.1/qtbase/src/gui' > g++ -c -pipe -Os -mtune=native -march=native -mno-avx256-split-unaligned-load > -mno-avx256-split-unaligned-store -pipe -fPIC -O3 -std=c++1z > -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W > -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow > -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH > -DENABLE_PIXMAN_DRAWHELPERS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT > -DQT_BUILD_GUI_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII > -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER > -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 > -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG > -DQT_CORE_LIB -march=core-avx2 -I. -I../../include -I../../include/QtGui > -I../../include/QtGui/5.12.1 -I../../include/QtGui/5.12.1/QtGui -I.tracegen > -isystem /usr/include/libdrm -I../../include/QtCore/5.12.1 > -I../../include/QtCore/5.12.1/QtCore -I../../include/QtCore -I.moc -isystem > /usr/include/libpng16 -I../3rdparty/harfbuzz-ng/include > -I../../mkspecs/linux-g++ painting/qdrawhelper_avx2.cpp -o > .obj/qdrawhelper_avx2.o > painting/qdrawhelper_avx2.cpp: In function ‘void > BLEND_SOURCE_OVER_ARGB32_AVX2(quint32*, const quint32*, int)’: > painting/qdrawhelper_avx2.cpp:143:43: warning: AVX vector return without AVX > enabled changes the ABI [-Wpsabi] > const __m256i half = _mm256_set1_epi16(0x80); > ~~~~~~~~~~~~~~~~~^~~~~~ > In file included from > /usr/lib64/gcc/x86_64-slackware-linux/8.3.0/include/immintrin.h:43, > from > ../../include/QtCore/5.12.1/QtCore/private/../../../../../src/corelib/tools/qsimd_p.h:191, > from ../../include/QtCore/5.12.1/QtCore/private/qsimd_p.h:1, > from painting/qdrawhelper_p.h:65, > from painting/qdrawhelper_avx2.cpp:40: > /usr/lib64/gcc/x86_64-slackware-linux/8.3.0/include/avx2intrin.h: In function > ‘void BYTE_MUL_AVX2(__m256i&, const __m256i&, const __m256i&, const > __m256i&)’: > /usr/lib64/gcc/x86_64-slackware-linux/8.3.0/include/avx2intrin.h:574:1: > error: inlining failed in call to always_inline ‘__m256i > _mm256_or_si256(__m256i, __m256i)’: target specific option mismatch > _mm256_or_si256 (__m256i __A, __m256i __B) But now i see, than Qt5 add additional -march=core-avx2 in FLAGS, so yeah, it's not gcc problem.